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

Get Credit Payment Complete Page context

Returns the gateway redirect URL so the frontend can redirect the user to the payment gateway. This page is shown after the confirmation step has initiated the payment redirect.

Preconditions:

  • Basket must not be empty

  • A credit payment option must be selected (check_payment_option)

  • A POS option must have been selected (credit_payment_option_selected)

  • Payment redirect must have been initiated (is_redirection_started)

Skip Conditions:

  • Page is skipped if the order has been finalized (order_finalized())

Page Context:

  • redirect_url: The URL to redirect the user to on the payment gateway.

  • is_iframe: Whether the redirect should be rendered in an iframe (optional).

Next Pages:

  • ThankYouPage

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

Credit Payment Complete Page context retrieved

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

Credit Payment Complete Page context retrieved

{
  "context_list": [
    {
      "page_name": "CreditPaymentCompletePage",
      "page_slug": "creditpaymentcompletepage",
      "page_context": {
        "redirect_url": "https://payment.gateway.com/pay?token=abc123",
        "is_iframe": false
      }
    }
  ],
  "pre_order": {
    "user_email": "user@akinon.com"
  },
  "errors": [],
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?