Events

Callbacks fired by the Watenga.js widget.

onSuccess

FieldTypeDescription
idstringWatenga transaction ID
amountstringPaid amount
currencystringUSD or ZWG
referencestringYour merchant reference
statusstringcompleted
paidAtstringISO 8601 timestamp
gatewaystringeftpay | zimswitch | ecocash | etc.
walletTypestring | nullecocash | innbucks | onemoney when applicable
cardLast4string | nullLast four digits for card payments
cardBrandstring | nullVISA | MASTER | ZIMSWITCH | etc.

onError

FieldTypeDescription
codestringMachine-readable error code
messagestringHuman-readable message for display

onClose

Called when the customer dismisses the payment UI. No payload.