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

Get BKM Express Nonce Page context

Returns the context for the BKM Express nonce waiting page. At this stage the BKM Express JS widget completes the payment on the BKM side and sends the result (nonce) back to the server via an asynchronous callback. The client waits for this callback to complete.

Preconditions:

  • Basket must not be empty

  • A valid BKM Express ticket must be present (path, token, and transaction_id must exist in the pre-order session data)

Page Context:

  • Returns an empty object {}.

Step Completion: This page is considered already completed (is_already_done) when either:

  • The payment option is BKM Express and cached nonce data is present (i.e., the BKM widget callback has already been received), or

  • The order has already been finalised (order_finalized() is true)

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

BKM Express nonce page context retrieved

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

BKM Express nonce page context retrieved

{
  "context_list": [
    {
      "page_name": "BexNoncePage",
      "page_slug": "bexnoncepage",
      "page_context": {}
    }
  ],
  "pre_order": {
    "basket": {
      "pk": 123,
      "total_amount": "150.00"
    },
    "payment_option": {
      "pk": 5,
      "name": "BKM Express",
      "slug": "bkm-express",
      "payment_type": "bkm_express",
      "payment_type_label": "BKM Express"
    },
    "number": "ORD-2026-0001",
    "installment": {
      "pk": 2,
      "installment_count": 3,
      "label": "3 Installments"
    },
    "total_amount": "165.59",
    "currency_type_label": "TRY"
  },
  "errors": [],
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?