Build

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_deposits with coin, network and amount (in coins). It arrives as charge.success with object: coin_deposit.
  • Card spending: POST/v1/cards/:id/test_purchases with amount in cents and a merchant name.
  • Disputes: on a test payment's page in the dashboard, Simulate a dispute, then decide it won or lost.
  • Webhooks: POST/v1/test_events with a type sends a sample event, marked "test": true. The dashboard's Webhooks page has the same button.

Test values

UseWhat happens
Account 1111111111, any bankThe transfer fails and the money comes back to your balance.
Account 2222222222, any bankThe transfer stays pending.
Account 9999999999The account is not found.
Any other 10-digit accountThe transfer succeeds; the name is a test name.
Mobile money number ending 1111The payout fails.
An amount ending in .13 (₦100.13, $5.13)A refund or a card load of it fails.
BVN 22222222222, NIN 44444444444Ada Okafor, born 12 April 1990.
BVN or NIN starting with 9Not 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.