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

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 MobilExpressSelectionPage has already been completed and the order number is assigned (is_already_done).

Page Context: (empty)

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

MobilExpress selection page context retrieved

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

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?