Developer Tools
Test payments
In a nutshell
Test cards, bank accounts and mobile money numbers for simulating Paystack payments in test mode.
Use these details with your test keys to simulate payments and their outcomes. No real money moves. Test details only work in test mode: a live transaction made with them fails.
Copy linkCards
Use any future expiry date.
| Scenario | Card number | Extra details |
|---|---|---|
| Successful, no validation (reusable) | 4084 0840 8408 4081 | CVV 408 |
| Successful, PIN validation | 5078 5078 5078 5078 12 | CVV 081, PIN 1111 |
| Successful, PIN and OTP validation | 5060 6666 6666 6666 666 | CVV 123, PIN 1234, OTP 123456 |
| Successful, PIN, phone and OTP validation | 5078 5078 5078 5078 04 | CVV 884, PIN 0000, OTP 123456 |
| Successful, bank authentication simulation (reusable) | 5192 6027 2058 4796 | CVV 123 |
| Declined | 4084 0800 0000 5408 | CVV 001 |
| Token not generated | 5078 5078 5078 5078 53 | CVV 082, PIN 0000 |
| Insufficient funds | 4084 0800 0067 0037 | CVV 787 |
Copy linkRefund scenarios
Payments with these cards succeed. The card you use sets the outcome of a refund on the transaction.
| Refund outcome | Card number | Extra details |
|---|---|---|
| Failed | 4084 0800 0067 1803 | CVV 180 |
| Needs attention | 4084 0800 0067 1902 | CVV 190 |
Copy linkLocal payment channels
These test details are for the payment channels available in your market.
EFT
Payments from these accounts always succeed. The account you use sets the outcome of a refund on the transaction.
| Refund outcome | Account number |
|---|---|
| Failed | 101 220 493 6 |
| Needs attention | 101 220 493 5 |
Copy linkBefore you go live
- Replace your test keys with your live keys on every server and client. Keep both pairs in environment variables so the switch is a configuration change.
- Set your live webhook URL on the API configuration page. Test and live mode have separate webhook URLs, so a URL you set while testing doesn't receive live events.
- Make your first live payment with a real payment method. Test cards, accounts and phone numbers don't work in live mode.
Was this page helpful?