Submit Cash Register Payment Agreement
Submits the cash register payment agreement and records store staff identification. Generates a pre-order number that will be used to track the cash register transaction.
Required Fields:
agreement: User must accept terms and conditions (must betrue)
Required Headers: In addition to the standard AJAX header, the following store identification headers are required for all cash register submissions:
X-STORE-STAFF-ID: Local store staff identifierX-STORE-STAFF-EMAIL: Store staff email addressX-STORE-ID: Local store identifierX-STORE-STAFF-REMOTE-ID: Remote store staff identifierX-STORE-REMOTE-ID: Remote store identifier
All five headers must be present. If any header is missing, a 400 validation error is returned indicating which header is required.
Processing:
Generates a unique pre-order number for the transaction
Records store staff information (
staff_id,staff_email,store_id,local_staff_id,local_store_id) in the pre-order dataAssociates the transaction with the initiating store staff member
Default fallback values for
staff_id,staff_email, andstore_idmay be configured via theCASH_REGISTER_DEFAULTSDjango setting. Header values always take precedence and override any defaults.
Basket Amount Validation:
Basket amount must be greater than zero before submitting
Navigation After Success:
If payment option has
is_installment_active: truein its configuration: routes toCashRegisterInstallmentSelectionPageOtherwise: routes to
CashRegisterCompletePage
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>)
Local store staff identifier assigned by the store management system
Email address of the store staff member initiating the transaction
Local store identifier assigned by the store management system
Remote system identifier for the store staff member
Remote system identifier for the store
User must accept terms and conditions to proceed. Must be true. Basket amount must be greater than zero.
Cash register payment agreement submitted successfully
Redirect to basket (empty basket)
POST /orders/checkout/?page=CashRegisterPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
X-STORE-STAFF-ID: text
X-STORE-STAFF-EMAIL: name@gmail.com
X-STORE-ID: text
X-STORE-STAFF-REMOTE-ID: text
X-STORE-REMOTE-ID: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 18
"agreement=true"{
"context_list": [
{
"page_name": "CashRegisterInstallmentSelectionPage"
}
],
"errors": {}
}Last updated
Was this helpful?

