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.
PaymentSession.onCardBINChange(function(selector, result), [scope])
PaymentSession.onCardBINChange(function(selector, result) { // use card BIN value console.log(result.BIN); });
{ "BIN": "123456" }
The callback function invoked when the event is triggered.
The optional named instance of a card payment data set within a session. See Multiple Hosted Sessions for more information.
None