AMSPaymentElement
This class represents payment element components. Use this class to initialize the SDK, create and display payment page, confirm payments, and manage component lifecycles.
Constructor
copy
final element = AMSPaymentElement();Create a new instance of AMSPaymentElement.
Relevant methods
Method | Description |
Use the SDK to configure parameter initialization instances. | |
Create and display the payment component UI. This method is mutually exclusive with the | |
Submit and confirm the payment for the current component instance. This method is mutually exclusive with the | |
Register a callback listener for the payment commit event. | |
Reset component state without releasing the listener. | |
Destroy instances and release all resources. |