Session
    
    setFocus()
setFocus()
Instructs the specified hosted field in the iFrame to gain focus.
Usage
PaymentSession.setFocus(HostedFieldRole)
Example
PaymentSession.setFocus('cardNumber');
Arguments
        HostedFieldRole
        
        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
None