Get Masterpass BIN Number Page context
Returns the context for the Masterpass BIN number entry step. Card details are collected on the client side via the Masterpass JS SDK; only the BIN and a flag indicating whether the card is a stored Masterpass card are submitted so the server can identify the card type and determine the available installment options.
Preconditions:
Basket must not be empty
Payment option must be of Masterpass type
Page Context:
Returns an empty object
{}. No additional data is exposed at GET time — the card data flow runs through the Masterpass JS SDK.
Step Completion: This page is considered already completed when both of the following are true:
Card information has been recorded, 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 BIN number page context retrieved
GET /orders/checkout/?page=MasterpassBinNumberPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Masterpass BIN number page context retrieved
{
"context_list": [
{
"page_name": "MasterpassBinNumberPage",
"page_slug": "masterpassbinnumberpage",
"page_context": {}
}
],
"pre_order": {
"basket": {
"pk": 123,
"total_amount": "150.00"
},
"payment_option": {
"pk": 5,
"name": "Masterpass",
"slug": "masterpass",
"payment_type": "masterpass",
"payment_type_label": "Masterpass"
},
"card_info": null,
"total_amount": "159.99",
"currency_type_label": "TRY"
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

