McTaba Labs logo
Software EngineeringThe WhiteboardProjectsEventsMasterclassesWebinarsLearn
Book Call

500+ developers already in the community

Get answers, find accountability partners, and stay ahead

Join Discord →
McTaba Labs logo

Educating 1 million students in tech by 2030.

Programs

  • HighSchool Graduates Launchpad
  • AI & Business Automation
  • Corporate Training
  • McTaba Story & Mission
  • Full-Stack Curriculum
  • Course Pricing & Plans
  • Frequently Asked Questions

Resources

  • Join Discord Community
  • Tech Events in Nairobi
  • Masterclasses
  • Free Resources
  • Learn
  • Campus
  • Africa Tech Talent Report
  • Partner With Us
  • Start a Project
  • Our Work

Contact Us

  • 124 Manyani East Road, Lavington, Nairobi
  • +254727795603
  • Book a Discovery Call

Office Hours:

Mon-Fri: 9am - 2pm EAT

Sat: 10am - 12pm EAT

© 2027 McTaba Labs - A product of Edtech Industries. All rights reserved.

Privacy PolicyTerms of ServiceRefund Policy
  1. Learn
  2. Paystack for African Developers
  3. Paystack Test Cards and Test Scenarios
Bonaventure OgetoBy Bonaventure Ogeto|Updated July 22, 2026

Paystack Test Cards and Test Scenarios

Use these Paystack test card numbers in test mode: Success: 4084084084084081 (CVV: 408, Expiry: any future date). Decline (Do Not Honor): 4084080000000409. Insufficient Funds: 4084080000000005. 3DS challenge required: 507850785078507812. For test bank transfers, use the Paystack test bank codes. For M-Pesa test, use phone 0708993090 with PIN 1234.

In this article

  1. 1. Paystack Test Card Numbers
  2. 2. Test Bank Transfer Accounts
  3. 3. M-Pesa Test Credentials (Kenya)
  4. 4. Learn More

Paystack Test Card Numbers

ScenarioCard NumberCVVExpiryPIN
Successful charge 4084084084084081 408 Any future date 0000
Decline — Do Not Honor 4084080000000409 408 Any future date —
Insufficient Funds 4084080000000005 408 Any future date —
3D Secure challenge 507850785078507812 081 Any future date 1234
International Visa success 4187427415564246 828 Any future date —

All test cards work only with your Paystack test secret key (sk_test_...). No real money moves.

Test Bank Transfer Accounts

To test bank transfer payments in Paystack test mode, use these details when prompted for bank account verification:

  • Bank: Any bank with code 057 (Zenith Bank) or 058 (GTBank) in test mode
  • Account Number: Any 10-digit numeric string (e.g., 0000000000) — test mode does not validate real accounts
  • Account Name: Will be returned as a dummy name

For subaccount creation in test mode, use the same approach — fake account numbers pass validation.

Get weekly developer tips

Join 25,000+ developers. Practical guides, job tips, and new content — straight to your inbox.

No spam. Unsubscribe anytime.

M-Pesa Test Credentials (Kenya)

To test M-Pesa payments in Paystack test mode (Kenya):

  • Phone number: 0708993090
  • M-Pesa PIN: 1234

The M-Pesa test flow simulates the STK push and confirmation. In test mode, the payment is auto-confirmed without a real Safaricom prompt.

Learn More

This guide is part of the Paystack testing guide.

Sign up for the McTaba newsletter

Key Takeaways

  • ✓Paystack test cards only work in test mode — switch to test keys before using them.
  • ✓The success test card is 4084084084084081 with any future expiry and CVV 408.
  • ✓To simulate a decline, use 4084080000000409 — this returns "Do Not Honor".
  • ✓To simulate insufficient funds, use 4084080000000005.
  • ✓To simulate a 3D Secure challenge, use card 507850785078507812.
  • ✓Test bank transfer accounts use any numeric string as account number with Paystack test bank codes — no real bank validation in test mode.

Frequently Asked Questions

Why does my test card charge fail even in test mode?
Check that you are using the test secret key (sk_test_...) not the live key. Also verify you are calling the Paystack API with the test key in the Authorization header — using the live key will treat it as a real charge attempt with a fake card, which will fail differently.
Can I use these test cards in the Paystack Inline popup?
Yes. In test mode, the Paystack Inline popup accepts these test card numbers just as a real checkout would accept a real card. Enter the card number, any future expiry, the CVV listed, and the PIN where prompted.
Are there test cards for specific bank types (Verve, Mastercard)?
Yes. The 4084... series is Visa. The 5078... series is Verve (common in Nigeria). Paystack may add more test cards — check the Paystack documentation for the latest list as new card types and scenarios are occasionally added.
How do I test USSD payments in Paystack test mode?
USSD test mode in Paystack auto-completes the USSD flow without actually dialing a USSD code. Initiate a transaction with a Nigerian test phone number and select USSD as the channel. The test mode will simulate a successful completion.

Learn Paystack Integration

KES 2,999

The definitive guide to building payment systems with Paystack — from your first transaction to production-grade payment infrastructure across Africa. 9 modules, 47 lessons. Free preview available.

Start Paystack Course

Not ready? Create Free Account

Keep reading

Testing Paystack Integrations: The Complete Guide

A complete guide to testing Paystack integrations at every level: test mode, test cards, unit tests with mocks, integration tests, end-to-end flows with Playwright, webhook simulation, contract testing, CI pipelines, staging environments, load testing, and coverage targets for payment code.

Read more

Unit Testing Paystack Integrations

Unit tests for Paystack integrations focus on your business logic, not the Paystack API itself. The goal is to test that your code responds correctly to different Paystack responses — without ever calling the real API. This guide shows what to unit test and how.

Read more

Integration Testing Paystack Flows End to End

Integration tests for Paystack test the real flow — your backend calls the actual Paystack test API, a webhook fires to your server, and your database is updated. Unlike unit tests with mocks, integration tests catch issues that only appear when the real API is involved.

Read more

Seeding Test Data for a Payments Feature

Good test data is essential for testing payment features. This guide covers creating Paystack test mode resources (plans, subaccounts, split codes) and seeding your application database with matching payment records for realistic test scenarios.

Read more

Paystack Webhook Not Firing: Diagnostic Checklist

When Paystack webhooks stop arriving, the problem is almost never Paystack itself. It is your URL configuration, your server, your firewall, or your response code. This checklist walks through every step from the dashboard setting to the server log, with verification commands for each.

Read more

Explore related topics

M-Pesa & African Stack

M-Pesa Daraja API tutorials, USSD development, and WhatsApp Business API guides. The African Stack that global bootcamps do not teach.

Learn to Code in Kenya

Everything a Kenyan needs to know before writing their first line of code. Career paths, real costs, hardware requirements, and honest answers about what it takes.

Learning to Code

Roadmaps, language guides, and practical advice for learning to code and launching a programming career.

Breaking Into Tech

Practical, no-nonsense guides for anyone looking to start or change their career in tech. From choosing your first language to acing interviews.

The African Stack: Skills for This Market

The skills that make Kenyan developers hard to replace: M-Pesa, USSD, WhatsApp, fintech, and building for the African market.

Bonaventure Ogeto

Bonaventure Ogeto

Founder, McTaba Labs

Bonaventure is the founder of McTaba Labs, a coding bootcamp in Nairobi, Kenya. He has spent years building products for the African market and mentoring the next generation of developers across the continent.