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

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_started in 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

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

Wallet redirect complete page context retrieved

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
get/orders/checkout/?page=WalletRedirectCompletePage
GET /orders/checkout/?page=WalletRedirectCompletePage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
200

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?