Get Wallet Redirect Complete Page context
Returns the redirect URL to which the browser should navigate for wallet gateways that require an external redirect (e.g., a 3-D-Secure challenge or a hosted payment page). After the redirect the provider calls back to the checkout URL with ?page=WalletRedirectCompletePage&success=true/false.
Preconditions:
Basket must not be empty.
The selected payment option must be of wallet type.
A redirection must have been initiated (
redirection_startedin session).
Page Context:
redirect_url: The external URL the browser should navigate to.
Step Completion: This page is considered already completed when the order has been finalised.
Dynamic Settings Used:
USE_ONE_TIME_TOKEN: One-time token appended to callback URLs; validated on return to prevent session replay.ORDERS_USE_ISOLATED_PRE_ORDER_ON_RETURN(static): Encoded order number appended to callback URLs; used to restore the pre-order on return when the browser session may have changed.
available_for_post_order: true
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>)
Wallet redirect complete page context retrieved
GET /orders/checkout/?page=WalletRedirectCompletePage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Wallet redirect complete page context retrieved
{
"context_list": [
{
"page_name": "WalletRedirectCompletePage",
"page_slug": "walletredirectcompletepage",
"page_context": {
"redirect_url": "https://payment-provider.example.com/3ds?token=xyz"
}
}
],
"pre_order": {
"basket": {
"pk": 123,
"total_amount": "150.00"
}
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

