Finalise BKM Express Order
Finalises the BKM Express order by retrieving the cached nonce data and processing the payment through the BKM Express gateway.
No direct user input is required. The input is retrieved automatically from the cache using the pre-order hash. The cached nonce data (stored by BexNoncePage) is validated with the same rules as BexNoncePage before the order is processed.
Processing:
Cached nonce data is retrieved via
get_cached_nonce_data(pre_order)The nonce data is re-validated with
BexNonceInputSerializerPayment is processed via
PaymentPageMixin.process_orderAfter creation: basket is submitted, contracts are saved, confirmation email is sent, order completion SMS and notification are sent
Order Number:
The order number is not regenerated at this step (
set_number=False). The number was already assigned duringBexSelectionPage.
Next Pages:
ThankYouPage
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>)
No user-supplied fields. Submit an empty body or omit the body entirely. Input is read automatically from the server-side nonce cache.
BKM Express order finalised successfully
POST /orders/checkout/?page=BexCompletePage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 2
""BKM Express order finalised successfully
{
"context_list": [
{
"page_name": "ThankYouPage",
"page_slug": "thankyoupage",
"page_context": {
"redirect_url": "/orders/checkout-success/abc123:def456:ghi789/",
"order_id": 5001,
"order_number": "ORD-2026-0001",
"new_user": false,
"token": null,
"campaigns": []
}
}
],
"pre_order": {
"basket": {
"pk": 123,
"total_amount": "150.00"
},
"order": {
"pk": 5001,
"number": "ORD-2026-0001",
"status": "confirmed"
},
"payment_option": {
"pk": 5,
"name": "BKM Express",
"slug": "bkm-express",
"payment_type": "bkm_express",
"payment_type_label": "BKM Express"
},
"number": "ORD-2026-0001",
"total_amount": "165.59",
"currency_type_label": "TRY"
},
"errors": {},
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

