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

Select a MobilExpress stored card

Records the card chosen by the user. The card token and masked card number are stored on the pre-order and the corresponding CardInfo (BIN-based card type lookup) is set.

Required Fields:

  • card_token: Opaque token identifying the selected card.

  • masked_card_number: Partially masked PAN of the selected card. Used to derive the BIN number for installment/card-type lookup.

State Changes:

  • pre_order.data['me_card_token'] is set to card_token

  • pre_order.data['me_masked_card_number'] is set to masked_card_number

  • pre_order.card_info is set based on BIN lookup

  • Forward MobilExpress data (me_payment_tried, etc.) is cleared

Next Page: MobilExpressInstallmentSelectionPage

post
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>)

Body
card_tokenstringRequired

Opaque token identifying the selected stored card.

Example: token-abc
masked_card_numberstringRequired

Partially masked PAN of the selected card (e.g., "450803******1234"). Used for BIN-based card type and installment lookup.

Example: 450803******1234
Responses
200

Card selection result

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
post/orders/checkout/?page=MobilExpressCardListPage
POST /orders/checkout/?page=MobilExpressCardListPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 66

"card_token='token-abc'&masked_card_number='450803******1234'"
200

Card selection result

{
  "context_list": [
    {
      "page_name": "MobilExpressInstallmentSelectionPage",
      "page_slug": "mobilexpressinstallmentselectionpage",
      "page_context": {
        "installments": [
          {
            "pk": 1,
            "installment_count": 1,
            "label": "Single Payment",
            "price_with_accrued_interest": "350.00",
            "monthly_price_with_accrued_interest": "350.00"
          }
        ],
        "installment_messages": []
      }
    }
  ],
  "errors": {},
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?