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

19 cards
CardNumberResult
Visa4012 8888 8888 1881 Success; also the card to use with rejection triggers
Visa4005 5192 0000 0004 Success
Visa4012 0000 3333 0026 Success
Visa4012 0000 7777 7777 Success
Visa4217 6511 1111 1119 Success
Visa4500 6000 0000 0061 Success
Visa4772 1290 5653 3503 Success
Visa4915 8050 3858 7737 Success
Mastercard2223 0000 4840 0011 Success
American Express3714 496353 98431 Success; 4-digit CVV
American Express3766 808163 76961 Success; 4-digit CVV
Diners Club3646 1510 0000 39 Success
Diners Club3646 1510 0000 13 Success
Maestro6304 0000 0000 0000 Success
Maestro5063 5169 4500 5047 Success
China UnionPay (CUP)6200 6800 0000 0004 Success
China UnionPay (CUP)6200 6800 0000 0038 Success
JCB3636 5000 0000 0260 Success
JCB3636 5000 0000 0989 Success

3D Secure (purchase flows)

7 cards
CardNumberResult
Visa4868 7191 9682 9038 Frictionless success; liability shift POSSIBLE
Mastercard5329 8797 0782 4603 Frictionless success; liability shift POSSIBLE
Visa4868 7191 5813 0060 Frictionless failed; liability shift NO
Visa4868 7191 6610 1368 Step-up challenge success; liability shift POSSIBLE
Mastercard5329 8797 3531 6929 Step-up challenge success; liability shift POSSIBLE
Visa4868 7191 8189 5556 Step-up challenge failed; liability shift NO
Visa4868 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)CodeResult
CCREJECT-REFUSED0500Do not honor
CCREJECT-SF9500Suspected fraud
CCREJECT-EC5400Expired card
CCREJECT-IRC5180Invalid or restricted card
CCREJECT-IF5120Insufficient funds
CCREJECT-LS9520Lost or stolen card
CCREJECT-IA1330Invalid account
CCREJECT-BANK_ERROR5100Generic decline
CCREJECT-CVV_F00N7CVV 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:

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.