Introduction
3DS
Batch
Browser Payment
Gateway
Gift Card
Payment Plan
Session
Tokenization
Transaction
Wallet
RESOURCES
Changelog
Session
onBlur
onBlur Callback
The onBlur( ) callback invokes the function registered against this event when the hosted field in the iFrame has lost focus.
Usage
PaymentSession.onBlur([HostedFieldsRole], function(selector));
Example
PaymentSession.onBlur(['card.number', 'card.securityCode'], function(selector) { //handle blur event });
Arguments
HostedFieldsRole
Array
An array of field roles for the hosted fields where the event occurred. Valid array of field roles:
card.number
card.securityCode
giftCard.number
giftCard.pin
ach.bankAccountNumber
ach.bankAccountHolder
ach.routingNumber
callbackFunction
Function
The callback function invoked with the selector for the field whose proxy triggered the event.
Return Value
None