Testing
Test mode runs in Paygent's own sandbox: the same API, the same webhooks, no real money and no bank. Results arrive a moment later, as they do live.
Making things happen
- Bank transfer payments: open the checkout's
checkout_url, choose bank transfer, then press Simulate the transfer. - Card payments: the test card page has Pay and Decline the card. No card number is needed.
- Settlement: test payments settle at once, so you can refund them and pay out straight away. Live payments wait for settlement (refunds before then get
409 not_settled). - Paygent wallet payments: Pay with Paygent (test mode) on the checkout page.
- Coins received:
POST/v1/coins/test_depositswithcoin,networkandamount(in coins). It arrives ascharge.successwithobject: coin_deposit. - Card spending:
POST/v1/cards/:id/test_purchaseswithamountin cents and amerchantname. - Disputes: on a test payment's page in the dashboard, Simulate a dispute, then decide it won or lost.
- Webhooks:
POST/v1/test_eventswith atypesends a sample event, marked"test": true. The dashboard's Webhooks page has the same button.
Test values
| Use | What happens |
|---|---|
Account 1111111111, any bank | The transfer fails and the money comes back to your balance. |
Account 2222222222, any bank | The transfer stays pending. |
Account 9999999999 | The account is not found. |
| Any other 10-digit account | The transfer succeeds; the name is a test name. |
Mobile money number ending 1111 | The payout fails. |
An amount ending in .13 (₦100.13, $5.13) | A refund or a card load of it fails. |
BVN 22222222222, NIN 44444444444 | Ada Okafor, born 12 April 1990. |
BVN or NIN starting with 9 | Not found. |
Rates in test mode
Fixed, so amounts are easy to check: $1, 1 USDT and 1 USDC are ₦1,600; 1 cedi ₦105; 1 Kenyan shilling ₦12; 1 Tanzanian shilling ₦0.60.
Test mode never emails your customers and never moves real money. Live keys (sk_live_) work once your business is live.
paygent