AdumoClient
AdumoClient Class
Public API of the AdumoClient instance returned by initClient().
Methods
| Method | Signature | Required | Description |
|---|---|---|---|
constructor | (config: AdumoClientConfig) => void | required | Creates a new AdumoClient instance. Appearance is validated against the client schema and merged with matching theme defaults. |
initBillingDetails | (billingDetailsConfig: BillingDetailsElementInitConfig) => void | required | Initializes and mounts the billing details form element. Appearance is validated against the element schema and merged with matching theme defaults. |
initPayments | (paymentsConfig: PaymentsElementInitConfig) => void | required | Initializes and mounts the payments element for processing transactions. Only one Payments element is mounted to the DOM; reinitializing will unmount the existing element. Appearance is validated against the element schema and merged with matching theme defaults. |
initPaymentMethod | (paymentMethodConfig: PaymentMethodElementInitConfig) => void | required | Initializes and mounts a single payment method button using the specified payment type. Multiple PaymentMethod elements can be initiated, but they share global state. Appearance is validated against the element schema and merged with matching theme defaults. |
initPaymentMethods | (paymentMethodsConfig: PaymentMethodsElementInitConfig) => void | required | Initializes and mounts the payment methods selection element. Multiple PaymentMethods elements can be initiated, but they share global state. Appearance is validated against the element schema and merged with matching theme defaults. |