Introduction
Authentication
Batch
Browser Payment
Gateway
Hosted Checkout
Payment Plan
Session
Tokenization
Transaction
Wallet
RESOURCES
Changelog
Session
onCardBINChange
onCardBINChange Callback
The onCardBINChange( ) method invokes the callback function when the card BIN is detected. This callback is only invoked when card number passes all required validations: card type, card number length and Luhn check.
Usage Copied to clipboard
PaymentSession.onCardBINChange(function(selector, result), [scope]);
Example Copied to clipboard
PaymentSession.onCardBINChange(function(selector, result) { // use card BIN value console.log(result.BIN); });
Example for card BIN result object Copied to clipboard
{ "BIN": "123456" }
Arguments Copied to clipboard
callbackFunction
Copied to clipboard
Function
The callback function invoked when the event is triggered.
scope
Copied to clipboard
String
The optional named instance of a card payment data set within a session. See Multiple Hosted Sessions for more information.
Return Value Copied to clipboard
None