Get Confirmation Payment Selected Page context
Entry point for the confirmation payment initiation step. On this page, the user accepts the payment agreement and submits to trigger the payment gateway's start_payment call. The gateway returns a token that is used in the subsequent polling step.
Preconditions:
Basket must not be empty
A confirmation payment option must be selected (
check_confirmation_payment_selected)No agreement must be required (
is_agreement_not_required)
Skip Conditions:
Page is skipped if all of the following are true:
A confirmation payment option is selected
Order number is assigned
user_confirmation_waiting = truein pre-order datatokenis set in pre-order data
Page Context: (empty)
Previous Pages:
ConfirmationPaymentAgreementCheckPage— if no agreement was requiredConfirmationPaymentAgreementConfirmPage— if agreement was required and accepted
Next Pages:
ConfirmationPaymentQueryPage
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 Selected Page context retrieved
GET /orders/checkout/?page=ConfirmationPaymentSelectedPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Confirmation Payment Selected Page context retrieved
{
"context_list": [
{
"page_name": "ConfirmationPaymentSelectedPage",
"page_slug": "confirmationpaymentselectedpage",
"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?

