Select a credit POS option
Stores the selected POS option in pre_order.data['credit_payment_option']. The submitted PK must belong to one of the available POS options returned in the GET context (payment_option.get_available_poses()).
Required Fields:
credit_payment_option: Primary key of the selectedPosobject.
Validation:
The POS must be present in the available POS options for the current payment option.
State Update:
pre_order.data['credit_payment_option']is set to the selectedPosinstance.
Backward Navigation:
When navigating backward,
credit_payment_optionis reset tonull.
Next Pages:
CreditPaymentConfirmationPage
Required header for AJAX requests. Must be set to XMLHttpRequest for all checkout requests.
XMLHttpRequestPossible values: Session cookie header (e.g. sessionid=abc123 or osessionid=<session_id>)
Primary key of the selected Pos object. Must be one of the available POS options
returned by payment_option.get_available_poses() for the current credit payment option.
10POS option selected or validation error
POST /orders/checkout/?page=CreditPaymentSelectionPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 28
"credit_payment_option=10"POS option selected or validation error
{
"context_list": [
{
"page_name": "CreditPaymentConfirmationPage",
"page_slug": "creditpaymentconfirmationpage",
"page_context": {}
}
],
"pre_order": {
"user_email": "user@akinon.com"
},
"errors": {},
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

