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, orcybersource_uc).
Step Completion: This page is considered already completed when agreement_confirmed is stored in the checkout session.
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 selection page context retrieved
GET /orders/checkout/?page=WalletSelectionPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
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?

