Sign in

Developer Tools

Test payments

View as Markdown

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.

ScenarioCard numberExtra details
Successful, no validation (reusable)4084 0840 8408 4081CVV 408
Successful, PIN validation5078 5078 5078 5078 12CVV 081, PIN 1111
Successful, PIN and OTP validation5060 6666 6666 6666 666CVV 123, PIN 1234, OTP 123456
Successful, PIN, phone and OTP validation5078 5078 5078 5078 04CVV 884, PIN 0000, OTP 123456
Successful, bank authentication simulation (reusable)5192 6027 2058 4796CVV 123
Declined4084 0800 0000 5408CVV 001
Token not generated5078 5078 5078 5078 53CVV 082, PIN 0000
Insufficient funds4084 0800 0067 0037CVV 787

Copy linkRefund scenarios

Payments with these cards succeed. The card you use sets the outcome of a refund on the transaction.

Refund outcomeCard numberExtra details
Failed4084 0800 0067 1803CVV 180
Needs attention4084 0800 0067 1902CVV 190

Copy linkLocal payment channels

These test details are for the payment channels available in your market.

M-PESA

NetworkPhone numberExtra details
M-PESA+254 710 000 000No PIN or OTP

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?