Get MobilExpress Selection Page context
Returns the context for the MobilExpress stored-card flow entry point. This page is reached when the user selects a payment option whose type is stored_card (a MobilExpress-backed option). The page has no page context of its own; its role is to trigger a card-list lookup on the MobilExpress gateway.
Preconditions:
Basket must not be empty
Payment option must be selected and must be MobilExpress type (
check_mobilexpress_payment_selected)
Skip Conditions:
Page is skipped when
MobilExpressSelectionPagehas already been completed and the order number is assigned (is_already_done).
Page Context: (empty)
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>)
MobilExpress selection page context retrieved
GET /orders/checkout/?page=MobilExpressSelectionPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
MobilExpress selection page context retrieved
{
"context_list": [
{
"page_name": "MobilExpressSelectionPage",
"page_slug": "mobilexpressselectionpage",
"page_context": {}
}
],
"pre_order": {
"basket": {
"pk": 201,
"total_amount": "350.00"
},
"payment_option": {
"pk": 10,
"name": "MobilExpress",
"slug": "mobilexpress",
"payment_type": "stored_card",
"payment_type_label": "Stored Card"
}
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

