RESOURCES
Changelog
Session
onFocus
onFocus Callback
The onFocus( ) callback invokes the function registered against this event when the hosted field in the iFrame has gained focus.
Usage
PaymentSession.onFocus([HostedFieldsRole], function(selector), [scope]);
Example
PaymentSession.onFocus(['card.number', 'card.securityCode'], function(selector) { //handle focus event });
Arguments
HostedFieldsRole
Array
An array of field roles for the hosted fields where the event occurred. Valid array of field roles:
card.nameOnCard
card.number
card.expiryMonth
card.expiryYear
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.
scope
String
The optional named instance of a card payment data set within a session. See Multiple Hosted Sessions for more information.
Return Value
None