Sets the styling for the hosted field to the supplied styling attributes when the payer hovers over the hosted field in the iFrame.
PaymentSession.setHoverStyle([<HostedFieldsRole>], styles)
PaymentSession.setHoverStyle(["card.number","card.securityCode"], { borderColor: 'red', borderWidth: '3px' });
An array of field roles for the hosted card fields, to be styled when the focus is gained. Valid array of field roles: ['card.number', 'card.expiryMonth', 'card.expiryYear', 'card.securityCode', 'giftCard.number', 'giftCard.pin', 'ach.bankAccountNumber', 'ach.bankAccountNumberConfirmation', 'ach.bankAccountHolder', 'ach.routingNumber', 'directDebitCanada.bankAccountHolder', 'directDebitCanada.bankAccountNumber', 'directDebitCanada.bankAccountNumberConfirmation', 'directDebitCanada.financialInstitutionNumber','directDebitCanada.transitNumber']
An object containing JavaScript CSS properties.
None