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

Get Confirmation Payment Complete Page context

Finalizes the confirmation payment and completes the order. This page is reached after the user has confirmed the payment on their device. The page processes the finalization logic inherited from PaymentPageMixin and advances to ThankYouPage on success.

Preconditions:

  • Basket must not be empty

  • A confirmation payment option must be selected (check_confirmation_payment_selected)

  • Order number must be assigned (has_order_number)

  • User must have confirmed the payment (is_payment_confirmed_by_user): user_confirmed = true and token are both set in pre-order data

Skip Conditions:

  • Page is skipped if the order is already finalized

Page Context: (empty)

Next Pages:

  • ThankYouPage

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 Complete Page context retrieved

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

Confirmation Payment Complete Page context retrieved

{
  "context_list": [
    {
      "page_name": "ConfirmationPaymentCompletePage",
      "page_slug": "confirmationpaymentcompletepage",
      "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?