jz_*_pk_*) and a short-lived top-up token from your backend. Never put your secret key in the app.
Server-side calls use @jazadev/node.
Install
Expo config
Keep the phone field visible when the keyboard opens on Android:Provider setup
Wrap the app outermost withGestureHandlerRootView, then JazaProvider.
Define getBalance once; JazaBalanceWidget and the offer step both use it.
- Expo Router
- Classic App
Balance — JazaBalanceWidget
Top up — JazaTopUpButton
Does not open the sheet until onRequestToken returns a JWT from your server (jaza.topUp).
label, style. JazaProvider also accepts onTopUpComplete.
What happens after Top up
- App calls your backend → JWT from
jaza.topUp - Sheet opens → bundles and balance
- User picks bundle → phone, country, currency → quote
- Confirm → Jaza collects via Mobile Money → SDK polls until success or failure
- Balance refreshes via
getBalance