Introduction
3DS
Batch
Browser Payment
Gateway
Gift Card
Payment Plan
Session
Tokenization
Transaction
Wallet
RESOURCES
Changelog
Session
setFocus()
setFocus()
Instructs the specified hosted field in the iFrame to gain focus.
Usage Copied to clipboard
PaymentSession.setFocus(HostedFieldRole)
Example Copied to clipboard
PaymentSession.setFocus('cardNumber');
Arguments Copied to clipboard
HostedFieldRole
Copied to clipboard
String
The field role for the card field rendered in an iFrame and hosted on the Mastercard Gateway. Valid
field
roles:
cardNumber
securityCode
Return Value Copied to clipboard
None