Payment element
The payment element shows the method list and each method’s fields. Your page
owns the Pay button and calls confirmPayment(), then waits for the result.
See the Custom payment flow for the
code.
Card result, as after 3-D Secure:
Events
| State | What the customer sees | Your page |
|---|---|---|
| Loaded | The methods for the transaction’s amount | ready |
| Method chosen | The method’s fields and the total with the fee | change with paymentMethodCode and amount |
| O’mari code | A field for the code from the SMS | confirmPayment() returns enter_otp: pay again |
| Waiting | “Check your phone”, or the scan code | waitForTransaction() |
| Paid, declined | Your page shows the result | The transaction’s outcome |
Reference: PaymentElement.