onMouseOver Callback

The onMouseOver( ) callback invokes the function registered against this event when the payer's mouse pointer moves over the hosted field in the iFrame.

Usage

PaymentSession.onMouseOver([<HostedFieldsRole>], function(selector, role), [scope])

Example

PaymentSession.onMouseOver(['card.number','card.securityCode'], function(selector, role) {
    //handle mouse over event
});

Arguments

<HostedFieldsRole> Array COMPULSORY

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 COMPULSORY

The callback function invoked with the selector and the role for the field whose proxy triggered the event.
Valid array of field roles: ['number', 'nameOnCard', 'expiryMonth', 'expiryYear', 'securityCode', 'pin', 'bankAccountNumber', 'bankAccountHolder', 'routingNumber']

scope String OPTIONAL

The optional named instance of a card payment data set within a session. See Multiple Hosted Sessions for more information.

Return Value

None

Copyright © 2023 MasterCard