ExpressElement
Express Element is used to render express payment buttons on the merchant page, helping buyers quickly select a payment method and complete the payment.
Note: Express Element is only responsible for rendering express payment buttons. To actually initiate a payment, call antom.confirmPayment(), and pass the ExpressElement instance as the elements parameter.
Method signature
When calling this method, use the following standard method signature format:
JavaScript
antom.createElement("express", options);TypeScript
antom.createElement(elementType: 'express', options?: ExpressAppConfig): ExpressElementParameters
Parameter name | Type | Required | Description |
elementType | String | Yes | Element type. In this scenario, pass in express, which is used for express payment buttons. |
Object | No | Configuration object, including payment session data, payment amount, enabled payment methods, and the display styles of buttons for different payment methods. |
Return value
This method returns an ExpressElement instance object, which provides methods such as mounting, unmounting, destroying, and registering event listeners:
Method name | Description |
Registers an event listener for the Element instance. | |
Used to mount the Element to the DOM. | |
Destroys the current Element (cannot be mounted again). | |
Unmounts the current Element (can be mounted again). | |
Updates the Element configuration. |