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 inMasterpassBinNumberPage.
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
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>)
Primary key (pk) of the Installment record to select. The PK
must reference an active installment linked to the card resolved
in MasterpassBinNumberPage.
2Installment selected successfully
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"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?

