Free tool
PayPal sandbox test credit cards
For PayPal's sandbox card payments use 4012 8888 8888 1881 (Visa) with any future expiry and any 3-digit CVV (4 digits for Amex). To make a payment fail, keep the card and put a rejection trigger in the name field.
26 numbers, copied from PayPal's testing docs on 2026-11-15. They only work in the PayPal sandbox / test environment, for development and testing. They are not real cards and cannot pay for anything.
Free · no sign-up · runs in your browser, nothing is uploaded
Successful payments
| Card | Number | Result |
|---|---|---|
| Visa | 4012 8888 8888 1881 | Success; also the card to use with rejection triggers |
| Visa | 4005 5192 0000 0004 | Success |
| Visa | 4012 0000 3333 0026 | Success |
| Visa | 4012 0000 7777 7777 | Success |
| Visa | 4217 6511 1111 1119 | Success |
| Visa | 4500 6000 0000 0061 | Success |
| Visa | 4772 1290 5653 3503 | Success |
| Visa | 4915 8050 3858 7737 | Success |
| Mastercard | 2223 0000 4840 0011 | Success |
| American Express | 3714 496353 98431 | Success; 4-digit CVV |
| American Express | 3766 808163 76961 | Success; 4-digit CVV |
| Diners Club | 3646 1510 0000 39 | Success |
| Diners Club | 3646 1510 0000 13 | Success |
| Maestro | 6304 0000 0000 0000 | Success |
| Maestro | 5063 5169 4500 5047 | Success |
| China UnionPay (CUP) | 6200 6800 0000 0004 | Success |
| China UnionPay (CUP) | 6200 6800 0000 0038 | Success |
| JCB | 3636 5000 0000 0260 | Success |
| JCB | 3636 5000 0000 0989 | Success |
3D Secure (purchase flows)
| Card | Number | Result |
|---|---|---|
| Visa | 4868 7191 9682 9038 | Frictionless success; liability shift POSSIBLE |
| Mastercard | 5329 8797 0782 4603 | Frictionless success; liability shift POSSIBLE |
| Visa | 4868 7191 5813 0060 | Frictionless failed; liability shift NO |
| Visa | 4868 7191 6610 1368 | Step-up challenge success; liability shift POSSIBLE |
| Mastercard | 5329 8797 3531 6929 | Step-up challenge success; liability shift POSSIBLE |
| Visa | 4868 7191 8189 5556 | Step-up challenge failed; liability shift NO |
| Visa | 4868 7194 8865 1967 | Authentication not available on lookup |
How testing works in PayPal
- Sandbox only: sandbox client ID and api-m.sandbox.paypal.com endpoints (Expanded / Advanced Checkout).
- Any future expiry date; any 3-digit CVV, or 4-digit for American Express.
- Declines are triggered by the name, not the number: put a case-sensitive trigger in First Name or Name on Card, ideally with Visa 4012888888881881. CCREJECT-REFUSED = 0500 do not honor, CCREJECT-SF = 9500 suspected fraud, CCREJECT-EC = 5400 expired, CCREJECT-IRC = 5180 invalid/restricted, CCREJECT-IF = 5120 insufficient funds, CCREJECT-LS = 9520 lost/stolen, CCREJECT-IA = 1330 invalid account, CCREJECT-BANK_ERROR = 5100 generic decline, CCREJECT-CVV_F = 00N7 CVV failure.
- All rejection triggers return AVS code G (globally unavailable) and CVV code P (not processed).
- PayPal's page also has a generator for more sandbox card numbers.
- 3D Secure purchase-flow cards (below) only work for purchases, not for saving payment methods; the vault/setup-token flow uses a separate card list where expiry must be 01 / current year + 3.
- API-level negative testing uses request headers (PayPal-Mock-Response), documented separately.
Rejection triggers for the name field
| Trigger (first name or name on card) | Code | Result |
|---|---|---|
| CCREJECT-REFUSED | 0500 | Do not honor |
| CCREJECT-SF | 9500 | Suspected fraud |
| CCREJECT-EC | 5400 | Expired card |
| CCREJECT-IRC | 5180 | Invalid or restricted card |
| CCREJECT-IF | 5120 | Insufficient funds |
| CCREJECT-LS | 9520 | Lost or stolen card |
| CCREJECT-IA | 1330 | Invalid account |
| CCREJECT-BANK_ERROR | 5100 | Generic decline |
| CCREJECT-CVV_F | 00N7 | CVV check failed |
All triggers return AVS code G and CVV code P. For API-level negative testing (for example a failed capture), PayPal uses the PayPal-Mock-Response request header instead.
Test cards for other providers, and more test data
Every provider only accepts its own published numbers. For other gateways, and for the rest of a checkout form:
- Credit card generator · Luhn-valid numbers by brand or BIN
- Stripe test cards · 4242 4242 4242 4242 and every decline
- Adyen test cards · Brands, 3D Secure 2, decline triggers
- Braintree test cards · Valid cards, amounts that decline
- IBAN generator · Valid check digits, 42 countries
- Phone number generator · Fictional ranges reserved by regulators
- Fake address generator · Test identities by country
More free developer tools
Looking for a full product instead? See payment gateways compared.
FAQ
What credit card number do I use in the PayPal sandbox?+
Visa 4012 8888 8888 1881 with any future expiry date and any 3-digit CVV. It works with PayPal's advanced (card fields) checkout in the sandbox, and it is the card PayPal suggests for testing declines with a name trigger.
How do I test a declined card payment in PayPal?+
Put a rejection trigger in the first name or name-on-card field, for example CCREJECT-IF for insufficient funds or CCREJECT-EC for an expired card. The triggers are case-sensitive; the table on this page lists all nine and the response code each returns.
Does PayPal have its own test card generator?+
Yes. PayPal's developer site has a card generator for sandbox numbers. The numbers on this page are the fixed ones PayPal lists, so you can copy a known card for a given brand or 3D Secure result.
Do PayPal sandbox cards work in live?+
No. They only work with a sandbox client ID against api-m.sandbox.paypal.com. In live they are declined.
How do I test 3D Secure with PayPal?+
Use the 3D Secure cards on this page with a purchase (capture or authorize) flow. PayPal lists a separate set of cards for saving a payment method, which need the expiry month 01 and the current year plus 3.
Sources: PayPal test card docs · PayPal docs (2). Checked 2026-11-15.