Get BKM Express Selection Page context
Returns the context for the BKM Express (BEX) payment initiation page. This page triggers the BKM Express API to obtain a one-time ticket that is required before the user can enter card details via the BKM Express JS widget.
Preconditions:
Basket must not be empty
Payment option must be selected and must be of BKM Express type (
is_bkm_express())
Page Context:
Returns an empty object
{}(no context fields are exposed to the client at GET time). The BKM Express JS widget credentials (path,token,transaction_id) are provided on the next page (BexBinNumberPage).
Skip Conditions:
No skip conditions beyond the standard post-order check.
available_for_post_orderistrue, so the page is accessible in post-order flows.
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>)
BKM Express selection page context retrieved
GET /orders/checkout/?page=BexSelectionPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
BKM Express selection page context retrieved
{
"context_list": [
{
"page_name": "BexSelectionPage",
"page_slug": "bexselectionpage",
"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"
},
"total_amount": "159.99",
"currency_type_label": "TRY"
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

