Session setFocus()

setFocus()

Instructs the specified hosted field in the iFrame to gain focus.

This function supports the Multiple Hosted Session functionality.


Usage Copied to clipboard

PaymentSession.setFocus(HostedFieldRole, scope)


Example Copied to clipboard

PaymentSession.setFocus('card.number');

Arguments Copied to clipboard

HostedFieldRole Copied to clipboard String

The field role for the card field rendered in an iFrame and hosted on the ARC Pay Gateway. Valid field roles:
card.number
card.expiryMonth
card.expiryYear
card.securityCode
giftCard.number
giftCard.pin
ach.bankAccountNumber
ach.bankAccountNumberConfirmation
ach.bankAccountHolder
ach.routingNumber
directDebitCanada.bankAccountNumberConfirmation
directDebitCanada.bankAccountHolder
directDebitCanada.bankAccountNumber
directDebitCanada.financialInstitutionNumber
directDebitCanada.transitNumber
scope Copied to clipboard String

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


Return Value Copied to clipboard

None