Get Confirmation Payment Agreement Check Page context
Determines whether the selected confirmation payment method requires a pre-payment agreement. This page is part of the confirmation payment (e.g., mobile payment, QR payment) flow and is reached immediately after a confirmation payment option is selected.
Preconditions:
Basket must not be empty
A confirmation payment option must be selected (
check_confirmation_payment_selected)Payment must be enabled (
is_payment_enabled)
Skip Conditions:
Page is skipped if
agreement_requiredis already set (eithertrueorfalse) in the pre-order data
Page Context: (empty)
Next Pages:
ConfirmationPaymentAgreementConfirmPage— if the gateway requires an agreementConfirmationPaymentSelectedPage— if no agreement is required
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>)
Agreement check page context retrieved
GET /orders/checkout/?page=ConfirmationPaymentAgreementCheckPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Agreement check page context retrieved
{
"context_list": [
{
"page_name": "ConfirmationPaymentAgreementCheckPage",
"page_slug": "confirmationpaymentagreementcheckpage",
"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?

