Get Credit Payment Complete Page context
Returns the gateway redirect URL so the frontend can redirect the user to the payment gateway. This page is shown after the confirmation step has initiated the payment redirect.
Preconditions:
Basket must not be empty
A credit payment option must be selected (
check_payment_option)A POS option must have been selected (
credit_payment_option_selected)Payment redirect must have been initiated (
is_redirection_started)
Skip Conditions:
Page is skipped if the order has been finalized (
order_finalized())
Page Context:
redirect_url: The URL to redirect the user to on the payment gateway.is_iframe: Whether the redirect should be rendered in an iframe (optional).
Next Pages:
ThankYouPage
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 Complete Page context retrieved
GET /orders/checkout/?page=CreditPaymentCompletePage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Credit Payment Complete Page context retrieved
{
"context_list": [
{
"page_name": "CreditPaymentCompletePage",
"page_slug": "creditpaymentcompletepage",
"page_context": {
"redirect_url": "https://payment.gateway.com/pay?token=abc123",
"is_iframe": false
}
}
],
"pre_order": {
"user_email": "user@akinon.com"
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

