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: redirectionmust be selected on the pre-orderNo 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
RedirectionPageCompletePagewithout requiring the customer to resubmit.
Navigation:
Previous page:
PaymentOptionSelectionPageNext page:
RedirectionPageCompletePage
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>)
Redirection Payment Selected Page context retrieved
Redirect to basket (empty basket) or login (guest purchase not allowed)
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?

