Checkout element
The checkout element runs the whole payment: the method list, the Pay button,
the O’mari code, the wait for the customer and the result. Your page listens
for one finished event. See the Quickstart
for the code.
Card result, as after 3-D Secure:
Events
| State | What the customer sees | Event |
|---|---|---|
| Loaded | The methods for the transaction’s amount | ready |
| Method chosen | The method’s fields and the total with the fee | change |
| O’mari code | A field for the code from the SMS | change |
| Waiting | “Check your phone”, or the scan code | status for EcoCash |
| Paid | The result | finished, outcome succeeded |
| Declined | The result | finished, outcome failed |
| Methods not found | Nothing: send the customer to fallbackUrl | loaderror |
The checkout element doesn’t offer a retry after a decline. Create a new transaction on your server for the next attempt.
Reference: CheckoutElement.