Events
Callbacks fired by the Watenga.js widget.
onSuccess
| Field | Type | Description |
|---|---|---|
id | string | Watenga transaction ID |
amount | string | Paid amount |
currency | string | USD or ZWG |
reference | string | Your merchant reference |
status | string | completed |
paidAt | string | ISO 8601 timestamp |
gateway | string | eftpay | zimswitch | ecocash | etc. |
walletType | string | null | ecocash | innbucks | onemoney when applicable |
cardLast4 | string | null | Last four digits for card payments |
cardBrand | string | null | VISA | MASTER | ZIMSWITCH | etc. |
onError
| Field | Type | Description |
|---|---|---|
code | string | Machine-readable error code |
message | string | Human-readable message for display |
onClose
Called when the customer dismisses the payment UI. No payload.
