Getting Started

Test vs Live Mode

Practice payments without using real money. Test mode lets you build and debug your integration safely.

5 min read

What is Test Mode?

Test mode is a safe environment where you can try out ClapPay without spending real money. Everything works just like live mode, but:

  • No real charges are made
  • You use special test card numbers
  • Money doesn't actually move
  • You can test errors and edge cases

Think of it like a practice field before the real game.

How to Tell Which Mode You're In

Look at your API keys:

Key TypeTest ModeLive Mode
Publishablepk_test_...pk_live_...
Secretsk_test_...sk_live_...

In the Dashboard, you'll see a toggle at the top that says "Test Mode" or "Live Mode." You can switch between them to see different data.

Test Card Numbers

Use these special card numbers in test mode. They trigger specific behaviors so you can test different scenarios:

Successful Payments

Card NumberBrandResult
4242 4242 4242 4242VisaSucceeds
5555 5555 5555 4444MastercardSucceeds
3782 822463 10005AmexSucceeds

Decline Testing

Card NumberResult
4000 0000 0000 9995Declined - insufficient funds
4000 0000 0000 0002Declined - generic decline
4000 0000 0000 0069Declined - expired card
4000 0000 0000 0127Declined - incorrect CVC

3D Secure Testing

Card NumberResult
4000 0025 0000 3155Requires 3D Secure
4000 0000 0000 32203D Secure 2 required

For all test cards, use:

  • Any future expiry date (like 12/34)
  • Any 3-digit CVC (or 4 digits for Amex)
  • Any ZIP/postal code

What to Test Before Going Live

✓ Test These Scenarios

  • Successful payment - does your order get created?
  • Failed payment - do you show a helpful error message?
  • 3D Secure - does the authentication popup work?
  • Webhooks - do you receive and process them?
  • Refunds - can you refund a test payment?
  • Subscriptions - do renewals work correctly?
  • Different payment amounts - very small and large
  • Mobile checkout - does it work on phones?

Differences Between Test and Live

FeatureTest ModeLive Mode
Real moneyNoYes
Test cards workYesNo
Real cards workNoYes
Payouts happenNoYes
Verification neededNoYes
DataSeparate test dataReal customer data

Going Live Checklist

When you're ready to accept real payments:

  • 1
    Complete business verification in Dashboard
  • 2
    Add your bank account for payouts
  • 3
    Switch API keys from test to live
  • 4
    Update webhook endpoints to use live signing secret
  • 5
    Double-check your prices are correct
  • 6
    Test a small real payment with your own card
  • 7
    Make sure refunds work in live mode
  • 8
    Set up monitoring and alerts

Common Mistakes

Using test keys in production

If you try to charge a real card with test keys, it will fail. Make sure to switch to live keys before launching.

Forgetting to update webhooks

Test and live mode have different webhook signing secrets. Update your server to use the live secret.

Mixing test and live data

Test mode and live mode have completely separate data. Customers, payments, and subscriptions created in test mode don't exist in live mode.

Related Articles