AMSBaseConfiguration
AMSBaseConfiguration is the base configuration class for the SDK, used to build AMSPaymentElement or AMSVaultElement instances. It includes regional language settings, runtime options, and callback listeners.
You can pass in configurations through the constructor when creating an instance of this class, or set them after instance creation using the setLocale() or setOption() methods.
Constructor
public AMSBaseConfiguration()Parameters
Parameter | Data type | Required | Description |
locale | String | No | Preferred language. Composed of a language code (ISO-639) and country code (ISO-3166) connected by an underscore, for example,
Valid values are:
|
Configurations and listeners
AMSBaseConfiguration provides two types of capabilities:
- Static configuration capabilities: Used to set initialization parameters such as language and configuration options.
- Event listening capabilities: Used to receive status callbacks at key lifecycle nodes of Payment Element or Vaulting Element.