Mobile element
The mobile element takes the customer’s phone number. EcoCash then asks the customer to approve on their phone, and the element waits and reports the result. O’mari sends an SMS code, which the customer types into the same element. See Mobile money approval for the code.
EcoCash
Section titled “EcoCash” Card result, as after 3-D Secure:
Events
| State | What the customer sees | Event |
|---|---|---|
| Loaded | A phone number field | ready |
| Typing | A message if it’s not valid | change with complete or error |
| Waiting | “Check your phone” | status, awaiting_approval |
| Paid | The result | status, succeeded |
| Declined | The result | status, failed |
O’mari
Section titled “O’mari” Card result, as after 3-D Secure:
Events
| State | What the customer sees | Your page |
|---|---|---|
| Loaded | A phone number field | ready |
| Code sent | A field for the SMS code | change with step: "otp"; enter_otp returned |
| Paid, declined | Your page shows the result | The second confirmMobilePayment() |
Reference: MobileElement.