Submit Card BIN Number
Submits the card BIN number to determine card type and available installments.
BIN Number Processing:
Validates that BIN is 6 or 8 digits
Looks up BIN in database to find matching card
If found: Uses card configuration (bank, type, installments)
If not found: Uses default card configuration
Card Info Object:
bin_number: The submitted BIN (first 6-8 digits)card: Card model with bank, type, and installment relationships
Next Pages:
InstallmentSelectionPage
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>)
First 6 or 8 digits of the credit card (BIN - Bank Identification Number). Used to determine card type, bank, and available installment options. Must contain only digits.
542119Pattern: ^\d{6,8}$BIN number submitted successfully
POST /orders/checkout/?page=BinNumberPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 23
"bin_number='542119'"BIN number submitted successfully
{
"context_list": [
{
"page_name": "InstallmentSelectionPage",
"page_slug": "installmentselectionpage",
"page_context": {
"installments": [],
"card_type": {
"pk": 1,
"name": "Visa",
"slug": "visa"
},
"installment_messages": []
}
}
],
"pre_order": {
"basket": {
"pk": 123,
"total_amount": "150.00"
},
"shipping_address": {
"pk": 10
},
"billing_address": {
"pk": 10
},
"payment_option": {
"pk": 1,
"name": "Credit Card",
"slug": "credit-card",
"payment_type": "credit_card",
"payment_type_label": "Credit Card"
},
"card_info": {
"bin_number": "542119",
"card": {
"pk": 1,
"name": "Visa"
}
},
"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?

