Recurly Test Gateway Card Numbers
Recurly's Test Gateway is active by default on your Recurly sandbox. It simulates gateway responses from the card number, so you can test billing and dunning without connecting a real gateway.
Before you test
- The Test Gateway is on by default in Recurly sandbox sites.
- Results may not always match a live gateway, and not every real-world error can be simulated.
- Supported currencies include USD, EUR, GBP, CAD, AUD, JPY, INR and more.
Successful card numbers
| Card number | Brand |
|---|---|
4111 1111 1111 1111 | Visa |
4012 8888 8888 1881 | Visa |
5555 5555 5555 4444 | Mastercard |
2223 0000 4840 0011 | Mastercard (2-series) |
3782 8224 6310 005 | American Express |
6011 0009 9013 9424 | Discover |
3056 9309 0259 04 | Diners Club |
3530 1113 3330 0000 | JCB |
4000 0000 0000 2024 | Visa Purchase succeeds, refund declines |
Declined transactions
| Card number | Scenario | Expected result | Decline code |
|---|---|---|---|
4000 0000 0000 0077 | Insufficient funds | Declined: insufficient funds | Recurly insufficient_funds |
4000 0000 0000 0069 | Expired card | Expired card or expiration date mismatch | Recurly expired_card |
4000 0000 0000 0101 | CVV mismatch | CVV / security code mismatch | Recurly declined_security_code |
4000 0000 0000 0002 | Generic decline | Declined by the gateway | Recurly declined |
4000 0000 0000 0051 | Card number declined | Card number declined | |
4000 0000 0000 0119 | Call issuer | Declined by issuing bank, customer must contact their bank | Recurly call_issuer |
4000 0000 0000 0085 | Fraud filters | Did not pass fraud filters | Recurly fraud_gateway |
4000 0000 0000 1190 | Fraud risk score | Declined due to a fraud risk score | |
4000 0000 0000 0036 | AVS postal code | AVS failed on postal code | |
4000 0000 0000 0226 | Invalid expiration date | Invalid expiration date | |
4000 0000 0000 0309 | Gateway timeout | Gateway timeout | Recurly gateway_timeout |
4000 0000 0000 0317 | Duplicate transaction | Duplicate transaction | |
4000 0000 0000 0341 | Stores, then declines | Declined by Gateway, but Recurly stores the card | Recurly declined_saveable |
3DS2 test cards
| Card number | Scenario | Expected result |
|---|---|---|
4000 0000 0000 3220 | Challenge flow | Triggers the 3DS2 challenge flow |
4000 0000 0000 3063 | Device fingerprint flow | Triggers the device fingerprint flow |
4222 2222 2222 2220 | Frictionless | Approved, flagged for fraud review |
4000 0084 0000 1629 | 3DS2 dunning flow | Tests the 3DS2 dunning flow |
ACH test bank accounts
Add bank accounts through the API, Hosted Account Management pages or the hosted invoice Make a Payment button.
| Value | Scenario | Expected result |
|---|---|---|
123456780 | Routing number (the only one that works in sandbox) | BANK OF RECURLY |
111111111 | Account number | Settled |
111111112 | Account number | Transaction canceled by the bank |
111111114 | Account number | Succeeds, then chargeback |
Testing failed subscription renewals on Recurly
Recurly documents a card made for renewal testing: 4000 0000 0000 0341 is stored on the account, but its transactions are declined by the gateway. That is how a real failed renewal looks.
- 1Add 4000 0000 0000 0341 as the billing info on a sandbox account. Recurly stores it.
- 2Let a subscription renew (or start one with a trial). The renewal invoice fails and the account enters dunning.
- 3Use 4000 0084 0000 1629 to test the 3DS2 dunning flow, where the customer must authenticate to pay.
- 4For ACH renewals, account number 111111112 returns a transaction canceled by the bank.
In production, many failed renewals are soft declines that can succeed on a later attempt if the retry is timed right. See how Slicker smart retries pick the timing, gateway and amount for each failed payment.
Your sandbox passes. What about the renewals failing in production?
Test cards prove your integration handles a decline. They do not show how much of your real failed Recurly volume is recoverable. We will look at your decline mix and tell you.
Recurly test card FAQ
What are the Recurly test credit card numbers?
With the Test Gateway, 4111 1111 1111 1111 succeeds and cards such as 4000 0000 0000 0077 (insufficient funds) and 4000 0000 0000 0069 (expired) decline.
How do I test dunning in Recurly?
Store 4000 0000 0000 0341 as billing info. Recurly accepts the card, but transactions are declined by the gateway, so the next renewal fails and dunning starts.
Which Recurly test card triggers a 3DS2 challenge?
4000 0000 0000 3220 triggers the 3DS2 challenge flow. 4000 0000 0000 3063 triggers the device fingerprint flow.
What is the Recurly sandbox ACH routing number?
123456780 is the only routing number that works in sandbox mode. Account 111111111 settles; 111111112 is canceled by the bank.
Sources
Values copied from the provider's documentation and checked November 2026. Providers change test values; if a number stops working, the source page is the reference.