Test Credit Cards for Stripe, PayPal, and Braintree
Use official sandbox cards safely for Stripe, PayPal, and Braintree payment testing.
Published:
Tags: test credit cards Stripe PayPal, Stripe test card numbers, PayPal sandbox cards
Test Credit Cards for Stripe, PayPal, and Braintree Payment processors publish sandbox values for approvals, declines, authentication, and errors. These values are processor-specific and change over time. Use this page as a workflow guide and confirm the exact scenario in the processor's current documentation before automating a test. Test Mode Only Test values belong in isolated test environments with test API credentials. Add a guard to prevent live keys from entering automated tests, and never put secret keys or real cardholder data in source control, screenshots, logs, or issue trackers. Stripe Test Cards Stripe's common interactive test values include: | Scenario | Test card | |---|---| | Successful Visa payment | | | Generic decline | | | Insufficient funds | | | Expired card…
Frequently Asked Questions
What is Stripe's basic successful test card?
In Stripe test mode, 4242 4242 4242 4242 simulates a successful Visa payment when used with a future expiry and valid-looking CVC. Stripe recommends test PaymentMethods such as pm_card_visa for server-side automated tests.
What test card should I use for PayPal Sandbox?
Use the funding details generated for your PayPal Sandbox personal account. PayPal sandbox data belongs to the test account and should be copied from the developer dashboard instead of relying on a universal card number from an article.
How are Braintree declines tested?
Braintree's sandbox documents special values and processor-response simulations. Follow the current Braintree testing reference for your SDK and scenario; do not assume a Stripe decline number has the same meaning in Braintree.
Can a Luhn-valid number test a payment gateway?
No. A generated Luhn-valid number can test client-side format validation only. Gateway outcomes require the processor's documented sandbox values and test credentials.
All articles · theproductguy.in