Get Confirmation Payment Query Page context
Returns the context for the confirmation payment query step. Depending on the gateway, the frontend either polls this page repeatedly (TomPay — waiting for in-app approval) or renders a form for user input (Paycell — OTP entry, PosAs Gift Card — card number and PIN). The page context may include gateway-specific data (e.g., Apple Pay context).
Preconditions:
Basket must not be empty
A confirmation payment option must be selected (
check_confirmation_payment_selected)Payment must be in a user-confirmation-waiting state (
is_user_confirmation_waiting):user_confirmation_waiting = trueandtokenare both set in pre-order dataOrder number must be assigned (
has_order_number)
Skip Conditions:
Page is skipped if
user_confirmed = trueandtokenare both set in pre-order data
Page Context:
For most gateways: empty
For Apple Pay: includes
context_data(JSON object from gateway)
Next Pages:
ConfirmationPaymentCompletePage
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>)
Confirmation Payment Query Page context retrieved
GET /orders/checkout/?page=ConfirmationPaymentQueryPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Confirmation Payment Query Page context retrieved
{
"context_list": [
{
"page_name": "ConfirmationPaymentQueryPage",
"page_slug": "confirmationpaymentquerypage",
"page_context": {}
}
],
"pre_order": {
"user_email": "user@akinon.com",
"payment_option": {
"pk": 5,
"name": "Confirmation Payment",
"slug": "confirmation-payment",
"payment_type": "confirmation",
"payment_type_label": "Confirmation From User"
}
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

