Manual Field Focus
In certain scenarios, you may need to programmatically focus an input field when a customer interacts with your custom UI elements. For example, if your input is styled like a Material form field with wider borders or additional whitespace between the actual input and its label, you may want the input field to receive focus upon a customer click.
To address this, we provide the focusField method:
instance.focusField(fieldName);
where fieldName is among cardNumber, cvv, expiryDate, cardholder, email and consent.
This method is void and does not return any value.