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

Get Saved Card Installment Selection Page context

Returns the installment options available for the selected saved card.

Preconditions:

  • Basket must not be empty.

  • The selected payment option must be a saved card type.

  • Card information must have been recorded.

  • A card must have been selected.

Page Context:

  • installments: List of active installment plans for the resolved card. Each plan includes a primary key, the number of instalments, a display label, the total amount with accrued interest, and the monthly amount with accrued interest.

  • card_type: Card type details including name, slug, and logo URL.

  • installment_messages: Informational messages related to the available installment options (may be empty).

Step Completion: This page is considered already completed when all of the following are true:

  • A saved card has been selected and card information recorded, and

  • An installment plan has been selected and is still valid.

available_for_post_order: false

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

Saved card installment selection page context retrieved

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

Saved card installment selection page context retrieved

{
  "context_list": [
    {
      "page_name": "SavedCardInstallmentSelectionPage",
      "page_slug": "savedcardinstallmentselectionpage",
      "page_context": {
        "installments": [
          {
            "pk": 1,
            "installment_count": 1,
            "label": "Single payment",
            "price_with_accrued_interest": "150.00",
            "monthly_price_with_accrued_interest": "150.00"
          },
          {
            "pk": 2,
            "installment_count": 3,
            "label": "3 instalments",
            "price_with_accrued_interest": "154.50",
            "monthly_price_with_accrued_interest": "51.50"
          }
        ],
        "card_type": {
          "name": "Visa",
          "slug": "visa",
          "logo": "/media/cards/visa.png"
        },
        "installment_messages": []
      }
    }
  ],
  "pre_order": {
    "basket": {
      "pk": 123,
      "total_amount": "150.00"
    },
    "card_info": {
      "bin_number": "411111"
    },
    "installment": null
  },
  "errors": [],
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?