Get Cash Register Complete Page context
Returns the barcode and order number for the cash register transaction. This page is displayed after the pre-order number has been generated and, if applicable, after the installment selection has been completed.
Preconditions:
A payment option of type
cash_registermust be selected (check_cr_selected)A pre-order number must have been generated (
check_has_pre_order_number)If
is_installment_activeis true: installment or no-installment must be confirmed (check_installment_selected)Basket must not be empty
Page Context:
barcode: Base64-encoded PNG image of the Code128 barcodenumber: The pre-order number to be scanned at the cash registerseconds: Countdown duration in seconds before the session expires (1800 = 30 minutes)
Barcode Format: The barcode is generated in Code128 format and encoded as a Base64 PNG string. Clients should render it as <img src="data:image/png;base64,{barcode}" />.
Page Completion State:
This page is considered complete when the cash register transaction has been finalized and the order has been created.
Navigation:
Previous page:
CashRegisterInstallmentSelectionPage(if installment active) orPaymentOptionSelectionPageNext page:
ThankYouPage
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 complete page context retrieved
Redirect to basket (empty basket)
GET /orders/checkout/?page=CashRegisterCompletePage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
{
"context_list": [
{
"page_name": "CashRegisterCompletePage",
"page_slug": "cashregistercompletepage",
"page_context": {
"barcode": "iVBORw0KGgoAAAANSUhEUgAA...",
"number": "202600012345",
"seconds": 1800
},
"pre_order": {
"payment_option": {
"pk": 5,
"name": "Cash Register",
"payment_type": "cash_register"
},
"total_amount": "250.00",
"currency_type_label": "TRY"
}
}
]
}Last updated
Was this helpful?

