VaultingElement
Vaulting binding card element, used to collect the buyer's credit card/debit card information and complete the card binding process. Card binding refers to saving the buyer's payment method to the merchant system for quick payment later.
Note: VaultingElement is only responsible for rendering the card binding form and collecting information. The actual card binding submission requires calling
antom.confirmCardSetup(), passing the VaultingElement instance as the elements parameter.
Method signature
When calling this method, please use the following standard method signature format.
antom.createElement('vaulting', options)Parameters
Parameter | Data type | Required | Description |
elementType | String | Yes | Element type. In this scenario, pass in |
| Object | No | A configuration object used to set the appearance theme and multilingual environment of components. |
options
Parameter | Data type | Required | Description |
sessionData | String | Yes | Card binding session data. Used to identify the current card binding session, this value is generated and returned by the merchant server. |
locale | String | No | Multilingual configuration.
Valid values are:
|
appearance | Object | No | Used for custom appearance configuration. For more information, refer to Appearance customization. It contains the following parameters:
|
Return value
This method returns a VaultingElement instance object, providing methods for mounting, unmounting, destroying, registering event listeners, and updating configuration:
Method name | Description |
element.on() | Register event listeners for the Element instance. |
element.mount() | Used to mount the Element to the DOM. |
element.destroy() | Destroy the current Element (cannot be mounted again). |
element.unmount() | Unmount the current Element (can be mounted again). |
element.updateConfig() | Update the configuration of the Element. |