Test and live
TEST apps move play money; LIVE apps move real money. They never mix.
Every app is either TEST or LIVE, chosen when you create it. An app's
environment never changes, and everything it creates inherits it: payments,
refunds and webhook endpoints all carry an environment field.
| TEST | LIVE | |
|---|---|---|
| Money | Play money | Real money |
| Keys | client_test_…, secret_test_… | client_live_…, secret_live_… |
| Needs a verified business | No | Yes |
| Approving a payment | A Gladys account, or Approve as test payer | A Gladys account only |
| Webhook URLs | https or http | https only |
The two never touch. A TEST payment can only be paid from a TEST wallet and settles into your business's TEST settlement wallet; webhooks for TEST payments go only to endpoints registered by TEST apps.
Play money
A TEST payment is paid with play money, from the payer's TEST wallet. Nobody has to set one up: the first time someone pays a TEST payment, Gladys opens a TEST wallet for them with KES 1,000,000 of play money. Your business's TEST settlement wallet starts with a balance too, so refunds work from day one.
Wallet balances, transactions, fee quotes, payment intents and refunds return
fixed-precision decimal strings in major currency units, such as "1500.50"
with "currency": "KES". Requests accept decimal strings or plain JSON numbers
and round half-up to currency precision. New webhook payloads use the same
contract. Stored delivery replays retain their original signed bytes, so an old
delivery may still contain integer cents. Payroll also uses KES major-unit
strings. See Amounts and currencies for precision, rounding and
retained webhook formats.
The test payer
Every TEST checkout page offers Approve as test payer and Decline as test payer. They need no Gladys account and no PIN, so you can finish a checkout end to end before anyone has the app.
The test payer is you, the developer who owns the app: the payment is paid from
your own play-money TEST wallet. Everything after that runs exactly as it does
for a real payer, including capture, settlement and webhooks. A declined
payment is cancelled with the reason Declined by the test payer.
LIVE payments never offer the test payer, and the API refuses it for them.
Moving to LIVE
You don't convert a TEST app; you create a LIVE one beside it, with its own keys and webhook endpoints. See Going live.