# AMSPaymentElement

> Use this class to initialize the SDK, create and display payment page, confirm payments, and manage component lifecycles.

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

```dart
final element = AMSPaymentElement();
```

Create a new instance of `AMSPaymentElement`.

## Relevant methods

| **Method** | **Description** |
| --- | --- |
| [`init()`](https://docs.antom.com/ac/sdks/flutter_init.md) | Use the SDK to configure parameter initialization instances. |
| [`createComponent()`](https://docs.antom.com/ac/sdks/flutter_createComponent.md) | Create and display the payment component UI. |
| [`confirmPayment()`](https://docs.antom.com/ac/sdks/flutter_confirmPayment.md) | Submit and confirm the payment for the current component instance. |
| [`setOnSubmitPayListener()`](https://docs.antom.com/ac/sdks/flutter_setOnSubmitPayListener.md) | Register a callback listener for the payment commit event. |
| [`reset()`](https://docs.antom.com/ac/sdks/flutter_reset.md) | Reset component state without releasing the listener. |
| [`destroy()`](https://docs.antom.com/ac/sdks/flutter_destroy.md) | Destroy instances and release all resources. |