Get Cash Register Page context
Returns the context for the cash register payment confirmation step. This page is displayed when the selected payment option is of type cash_register.
Preconditions:
A payment option of type
cash_registermust be selected (check_cr_selected)Basket must not be empty
Purpose: Cash register payment is an in-store payment method where the customer agrees to pay at a physical cash register terminal. The store staff initiates the transaction on behalf of the customer.
Page Context: This page returns an empty page context. The primary action is the submission of the agreement along with store staff identification headers.
Page Completion State:
This page is considered complete when the payment option is
cash_registerand a pre-order number has been generated.If already complete, the system automatically advances to the next step.
Navigation:
Previous page:
PaymentOptionSelectionPageNext page:
CashRegisterInstallmentSelectionPage(if installment is active) orCashRegisterCompletePage
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>)
Cash register page context retrieved
Redirect to basket (empty basket) or login (guest purchase not allowed)
GET /orders/checkout/?page=CashRegisterPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
{
"context_list": [
{
"page_name": "CashRegisterPage",
"page_slug": "cashregisterpage",
"page_context": {},
"pre_order": {
"payment_option": {
"pk": 5,
"name": "Cash Register",
"slug": "cash-register",
"payment_type": "cash_register",
"payment_type_label": "Cash Register"
},
"total_amount": "250.00",
"unpaid_amount": "250.00",
"currency_type_label": "TRY"
}
}
]
}Last updated
Was this helpful?

