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

Get Redirection Payment Selected Page context

Returns the context for the Redirection Payment Selected Page.

This page acts as a transition step in the redirection-based payment flow. It is reached after a payment option with payment_type: redirection has been selected on the pre-order. The page itself carries no additional context data; its purpose is to confirm that the preconditions for initiating the redirect are met before the customer proceeds to submit the form.

Preconditions:

  • The basket must not be empty

  • A payment option with payment_type: redirection must be selected on the pre-order

  • No active transaction must exist for the current payment attempt (the transaction slot must be clear so that a fresh transaction can be created on form submission)

Auto-advance:

  • If all three preconditions are met and the redirect has already been initiated (an order number is assigned and the redirection flow has started), the system considers this step complete and automatically advances to RedirectionPageCompletePage without requiring the customer to resubmit.

Navigation:

  • Previous page: PaymentOptionSelectionPage

  • Next page: RedirectionPageCompletePage

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

Redirection Payment Selected Page context retrieved

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
get/orders/checkout/?page=RedirectionPaymentSelectedPage
GET /orders/checkout/?page=RedirectionPaymentSelectedPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
{
  "context_list": [
    {
      "page_name": "RedirectionPaymentSelectedPage",
      "page_slug": "redirectionpaymentselectedpage",
      "page_context": {}
    }
  ],
  "pre_order": {
    "payment_option": {
      "pk": 5,
      "name": "Online Payment",
      "slug": "online-payment",
      "payment_type": "redirection"
    },
    "total_amount": "150.00",
    "is_guest": false,
    "is_post_order": false
  },
  "errors": null,
  "template_name": ""
}

Last updated

Was this helpful?