For the complete documentation index, see llms.txt. This page is also available as Markdown.

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_required is already set (either true or false) in the pre-order data

Page Context: (empty)

Next Pages:

  • ConfirmationPaymentAgreementConfirmPage — if the gateway requires an agreement

  • ConfirmationPaymentSelectedPage — if no agreement is required

get
Header parameters
x-requested-withstring · enumRequired

Required header for AJAX requests. Must be set to XMLHttpRequest for all checkout requests.

Default: XMLHttpRequestPossible values:
CookiestringOptional

Session cookie header (e.g. sessionid=abc123 or osessionid=<session_id>)

Responses
200

Agreement check page context retrieved

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
get/orders/checkout/?page=ConfirmationPaymentAgreementCheckPage
GET /orders/checkout/?page=ConfirmationPaymentAgreementCheckPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
200

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?