Get BIN Number Page context
Returns the context for entering the card BIN (Bank Identification Number). This page captures the first 6-8 digits of the credit card to determine card type, bank, and available installment options.
Preconditions:
Payment option must be selected and must be credit card type (
is_credit_card())Basket must not be empty
BIN Number Validation:
BIN number must be 6 or 8 digits
System looks up the BIN in the
BinNumberdatabase to determine card typeIf BIN not found, falls back to default card configuration
Card Information Extraction:
Card type (Visa, Mastercard, Amex, etc.)
Issuing bank
Available installment options
Card category (credit, debit, prepaid)
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>)
BIN Number page context retrieved
GET /orders/checkout/?page=BinNumberPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
BIN Number page context retrieved
{
"context_list": [
{
"page_name": "BinNumberPage",
"page_slug": "binnumberpage",
"page_context": {}
}
],
"pre_order": {
"basket": {
"pk": 123,
"total_amount": "150.00"
},
"shipping_address": {
"pk": 10,
"first_name": "John",
"last_name": "Doe"
},
"billing_address": {
"pk": 10,
"first_name": "John",
"last_name": "Doe"
},
"payment_option": {
"pk": 1,
"name": "Credit Card",
"slug": "credit-card",
"payment_type": "credit_card",
"payment_type_label": "Credit Card"
},
"card_info": null,
"installment": null,
"total_amount": "159.99",
"unpaid_amount": "159.99",
"currency_type_label": "USD"
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

