Get Masterpass Installment Selection Page context
Returns the available installment options for the Masterpass flow. Installments are derived from the card identified in the previous step and filtered by the active installment filter rules.
Preconditions:
Basket must not be empty
Card information must have been entered (
MasterpassBinNumberPagemust have been completed)Payment option must be of Masterpass type
Page Context:
installments: List of available installment options for the resolved card. Each entry containspk,installment_count,label,price_with_accrued_interest, andmonthly_price_with_accrued_interestcalculated against the current unpaid basket amount.card_type: Card type details (name,slug,logo), derived from the resolved card's card type.installment_messages: List of informational strings returned by the installment filter service (e.g. filter messages or promotion notices).
Step Completion: This page is considered already completed when both of the following are true:
An installment has been selected, and
The selected payment option is of Masterpass type.
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>)
Masterpass installment selection page context retrieved
GET /orders/checkout/?page=MasterpassInstallmentPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Masterpass installment selection page context retrieved
{
"context_list": [
{
"page_name": "MasterpassInstallmentPage",
"page_slug": "masterpassinstallmentpage",
"page_context": {
"installments": [
{
"pk": 1,
"installment_count": 1,
"label": "Single Payment",
"price_with_accrued_interest": "159.99",
"monthly_price_with_accrued_interest": "159.99"
},
{
"pk": 2,
"installment_count": 3,
"label": "3 Installments",
"price_with_accrued_interest": "165.59",
"monthly_price_with_accrued_interest": "55.20"
}
],
"card_type": {
"name": "Master",
"slug": "master",
"logo": "https://cdn.akinon.com/logos/master.png"
},
"installment_messages": []
}
}
],
"pre_order": {
"payment_option": {
"pk": 5,
"slug": "masterpass",
"payment_type": "masterpass"
},
"card_info": {
"bin_number": "542119",
"card": {
"pk": 1,
"name": "Master"
}
},
"installment": null
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

