Get Credit Payment Confirmation Page context
Returns the empty confirmation page context. At this step the user reviews the order and accepts the terms and conditions before being redirected to the payment gateway.
Preconditions:
Basket must not be empty
A credit payment option must be selected (
check_payment_option)A POS option must have been selected (
check_credit_payment_option_selected)
Skip Conditions:
Page is skipped if the redirect URL is already set in the pre-order and the user has not yet been redirected (
redirect_urlset andis_redirectedisfalse)
Note — is_redirected flag:
is_redirectedis set totruewhen the user visits/orders/redirection/(RedirectionView), which acts as a bridge before forwarding to the payment gateway. Onceis_redirectedistrue, this page is no longer considered done and will be shown again if the user navigates back (e.g. payment failed at the gateway).
Page Context: (empty)
Next Pages:
CreditPaymentCompletePage
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>)
Credit Payment Confirmation Page context retrieved
GET /orders/checkout/?page=CreditPaymentConfirmationPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Credit Payment Confirmation Page context retrieved
{
"context_list": [
{
"page_name": "CreditPaymentConfirmationPage",
"page_slug": "creditpaymentconfirmationpage",
"page_context": {}
}
],
"pre_order": {
"user_email": "user@akinon.com",
"payment_option": {
"pk": 3,
"name": "Credit Payment"
}
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

