Skip to content

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.

Demo · no money moves
Payment ends

Card numbers are not sent anywhere in this demo; use the card result buttons to see how a card payment ends.
Events
    StateWhat the customer seesEvent
    LoadedThe methods for the transaction’s amountready
    Method chosenThe method’s fields and the total with the feechange
    O’mari codeA field for the code from the SMSchange
    Waiting“Check your phone”, or the scan codestatus for EcoCash
    PaidThe resultfinished, outcome succeeded
    DeclinedThe resultfinished, outcome failed
    Methods not foundNothing: send the customer to fallbackUrlloaderror

    The checkout element doesn’t offer a retry after a decline. Create a new transaction on your server for the next attempt.

    Reference: CheckoutElement.