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

Get Wallet Selection Page context

Returns the payment data required to initialise the digital wallet flow (Apple Pay, Google Pay, or Cybersource UC). The active wallet method is determined by the payment gateway and stored in the checkout session.

Preconditions:

  • Basket must not be empty.

  • The selected payment option must be of wallet type.

Page Context:

  • paymentData: Payment initialisation data provided by the gateway (supportedMethods, data, detail).

  • paymentMethod: Identifies the active wallet provider (apple_pay, google_pay, or cybersource_uc).

Step Completion: This page is considered already completed when agreement_confirmed is stored in the checkout session.

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 selection page context retrieved

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

Wallet selection page context retrieved

{
  "context_list": [
    {
      "page_name": "WalletSelectionPage",
      "page_slug": "walletselectionpage",
      "page_context": {
        "paymentData": {
          "supportedMethods": "https://apple.com/apple-pay",
          "data": {
            "merchantIdentifier": "merchant.com.example",
            "supportedNetworks": [
              "visa",
              "masterCard"
            ],
            "merchantCapabilities": [
              "supports3DS"
            ],
            "countryCode": "US",
            "currencyCode": "USD"
          },
          "detail": {}
        },
        "paymentMethod": "apple_pay"
      }
    }
  ],
  "pre_order": {
    "basket": {
      "pk": 123,
      "total_amount": "150.00"
    },
    "payment_option": {
      "pk": 5,
      "name": "Apple Pay",
      "slug": "apple-pay",
      "payment_type": "wallet",
      "payment_type_label": "Wallet"
    }
  },
  "errors": [],
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?