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

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 = true in pre-order data

    • token is set in pre-order data

Page Context: (empty)

Previous Pages:

  • ConfirmationPaymentAgreementCheckPage — if no agreement was required

  • ConfirmationPaymentAgreementConfirmPage — if agreement was required and accepted

Next Pages:

  • ConfirmationPaymentQueryPage

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

Confirmation Payment Selected Page context retrieved

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

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?