Get Wallet Payment Page context
Returns any supplementary payment context required by the wallet gateway after the agreement step. For Apple Pay this includes the session context_data from the gateway; for all other wallet methods the context is an empty object.
Preconditions:
Basket must not be empty.
The selected payment option must be of wallet type.
Agreement must have been confirmed (
agreement_confirmedin session).
Page Context:
Apple Pay (
WalletPaymentPageContext):context_data— gateway session data required by the browser Payment Sheet.All other wallet providers: empty object
{}.
Step Completion: This page is considered already completed when payment_started 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 payment page context retrieved
GET /orders/checkout/?page=WalletPaymentPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Wallet payment page context retrieved
{
"context_list": [
{
"page_name": "WalletPaymentPage",
"page_slug": "walletpaymentpage",
"page_context": {
"context_data": {
"merchantSession": "eyJhbGciOiJSUzI1NiJ9..."
}
}
}
],
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

