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

Submit wallet payment token and execute payment

Submits the payment token obtained from the wallet provider and starts the payment transaction. The required fields vary by wallet method:

  • Apple Pay: payment_token (required, JSON) plus optional device_info, merchant_defined_info, and merchant_defined_secure_info.

  • Google Pay: payment_token (required, JSON).

  • Cybersource UC: payment_token (required, string) plus optional browser fingerprint fields (browser_java_enabled, browser_language, browser_color_depth, browser_screen_height, browser_screen_width, browser_time_zone). browser_header and browser_user_agent are populated automatically from request headers.

  • Other wallet providers: No input required (null serializer).

Backward Navigation:

  • Removes payment_started, context_extras, token, redirection_started, redirect_url, remote_redirect_url, and html_content from the session.

Next Page:

  • WalletRedirectCompletePage — when the gateway requires a browser redirect.

  • WalletCompletePage — for direct (non-redirect) wallet flows.

Dynamic Settings Used:

  • USE_ONE_TIME_TOKEN: When enabled, a one-time token is appended to the redirect callback URLs to prevent session replay.

  • ORDERS_USE_ISOLATED_PRE_ORDER_ON_RETURN (static): When enabled, the encoded order number is appended to the redirect callback URLs for isolated pre-order recovery.

available_for_post_order: true

post
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>)

Body
or
or
Responses
200

Payment token accepted — routes to next page

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
post/orders/checkout/?page=WalletPaymentPage
POST /orders/checkout/?page=WalletPaymentPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 99

"payment_token='{\'data\':\'...\',\'header\':{...},\'signature\':\'...\',\'version\':\'EC_v1\'}'"
200

Payment token accepted — routes to next page

{
  "context_list": [
    {
      "page_name": "WalletCompletePage",
      "page_slug": "walletcompletepage",
      "page_context": {}
    }
  ],
  "errors": [],
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?