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

Select Installment Option for Masterpass

Sets the selected installment option for the Masterpass flow.

Required Fields:

  • installment: Primary key of the installment record to apply. The value must reference an active installment linked to the card resolved in MasterpassBinNumberPage.

Validation:

  • The submitted installment PK must belong to an active installment for the resolved card. A PK outside this set returns a validation error.

State Update:

  • The selected installment is stored on the pre-order.

  • Any previously selected campaign and reward selections are cleared.

Backward Navigation:

  • On backward navigation, the selected installment is cleared.

Next Page:

  • MasterpassOrderNoPage

available_for_post_order: true

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
installmentintegerRequired

Primary key (pk) of the Installment record to select. The PK must reference an active installment linked to the card resolved in MasterpassBinNumberPage.

Example: 2
Responses
200

Installment selected successfully

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

"installment=1"
200

Installment selected successfully

{
  "context_list": [
    {
      "page_name": "MasterpassOrderNoPage",
      "page_slug": "masterpassordernopage",
      "page_context": {}
    }
  ],
  "pre_order": {
    "payment_option": {
      "pk": 5,
      "slug": "masterpass",
      "payment_type": "masterpass"
    },
    "installment": {
      "pk": 2,
      "installment_count": 3,
      "label": "3 Installments",
      "price_with_accrued_interest": "165.59",
      "monthly_price_with_accrued_interest": "55.20"
    },
    "total_amount": "165.59",
    "currency_type_label": "TRY"
  },
  "errors": {},
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?