RESOURCES
Changelog
Session
setHoverStyle()
setHoverStyle()
Sets the styling for the hosted field to the supplied styling attributes when the payer hovers over the hosted field in the iFrame.
Usage
PaymentSession.setHoverStyle([hostedFieldsRole], styles)
Example
PaymentSession.setHoverStyle(["cardNumber","securityCode"], { borderColor: 'red', borderWidth: '3px' });
Arguments
hostedFieldsRole
Array
An array of field roles for the hosted card fields, to be styled when the focus is gained. Valid values for array of field roles:
cardNumber
securityCode
styles
Object
An object containing JavaScript CSS properties.
Return Value
None