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(['cardNumber','securityCode'], function(selector) {
    //handle blur event
});

Arguments

<HostedFieldsRole> Array COMPULSORY

An array of field roles for the hosted fields where the event occurred. Valid array of field roles: ['cardNumber','securityCode']

<callbackFunction> Function COMPULSORY

The callback function invoked with the selector for the field whose proxy triggered the event.

Return Value

None

Copyright © 2023 MasterCard