Free tools for payment testing
CC Generator — Choose your test
Create local form data, inspect a number, or find the right sandbox fixture. Start with the task you need to test.
Provider test fixtures
Choose a payment scenario
Find the inputs and expected outcome for an authorized sandbox test. This selector does not send a payment or connect to your account.
All supported scenarios are listed below. With JavaScript enabled, you can filter by provider and copy a test setup.
Successful payment
Interactive card entry in a Stripe sandbox
4242424242424242
- Expiry
- Any future date
- CVC / CVV
- Any 3 digits
Successful sandbox card scenario
What to check in your appComplete the sandbox payment and check the trusted server-side payment state before treating the order as paid.
Use test credentials and a sandbox payment form. For API tests, use Stripe's documented test PaymentMethods instead of sending raw card numbers.
Stripe documentation · Checked · Card reference
Insufficient funds
Interactive card entry in a Stripe sandbox
4000000000009995
- Expiry
- Any future date
- CVC / CVV
- Any 3 digits
card_declined / insufficient_funds
What to check in your appCheck that the form explains the decline and offers another payment method without marking the order paid.
Use test credentials and a sandbox payment form. For API tests, use Stripe's documented test PaymentMethods instead of sending raw card numbers.
Stripe documentation · Checked · Card reference
Generic decline
Interactive card entry in a Stripe sandbox
4000000000000002
- Expiry
- Any future date
- CVC / CVV
- Any 3 digits
card_declined / generic_decline
What to check in your appKeep the order unpaid and show a useful recovery message. A declined payment is an expected result for this fixture.
Use test credentials and a sandbox payment form. For API tests, use Stripe's documented test PaymentMethods instead of sending raw card numbers.
Stripe documentation · Checked · Card reference
Expired card response
Interactive card entry in a Stripe sandbox
4000000000000069
- Expiry
- Any future date
- CVC / CVV
- Any 3 digits
expired_card
What to check in your appEnter a future expiry date. The test card selects the expired-card response; a past date can fail form validation before the payment is attempted.
Use test credentials and a sandbox payment form. For API tests, use Stripe's documented test PaymentMethods instead of sending raw card numbers.
Stripe documentation · Checked · Card reference
Incorrect security code
Interactive card entry in a Stripe sandbox
4000000000000127
- Expiry
- Any future date
- CVC / CVV
- Any 3 digits
incorrect_cvc
What to check in your appSupply a three-digit CVC so the provider can simulate the failed check. Leaving the field empty tests a different path.
Use test credentials and a sandbox payment form. For API tests, use Stripe's documented test PaymentMethods instead of sending raw card numbers.
Stripe documentation · Checked · Card reference
3D Secure challenge
Interactive card entry in a Stripe sandbox
4000000000003220
- Expiry
- Any future date
- CVC / CVV
- Any 3 digits
Authentication required; default Radar rules request 3DS. Complete the test challenge.
What to check in your appComplete the test challenge and check the payment's final state. Do not treat opening or closing the challenge as proof of payment.
Use test credentials and a sandbox payment form. For API tests, use Stripe's documented test PaymentMethods instead of sending raw card numbers.
Stripe documentation · Checked · Card reference
Authenticate, then decline
Interactive card entry in a Stripe sandbox
4000008400001629
- Expiry
- Any future date
- CVC / CVV
- Any 3 digits
Successful authentication followed by card_declined. Authentication is not payment success.
What to check in your appCheck the final payment result after authentication. A successful 3DS step must not make a declined order look paid.
Use test credentials and a sandbox payment form. For API tests, use Stripe's documented test PaymentMethods instead of sending raw card numbers.
Stripe documentation · Checked · Card reference
Successful payment
Expanded Checkout card payments in the PayPal sandbox
4012888888881881
- Expiry
- Any future date
- CVC / CVV
- Any 3 digits
Successful sandbox card capture scenario
What to check in your appUse an ordinary test name without a rejection trigger. Inspect the capture state in the server response before treating the order as paid.
Use a sandbox client ID and sandbox API endpoints. For a rejection case, enter the exact trigger in First Name or Name on Card. These cases are for Expanded Checkout, not Braintree.
PayPal documentation · Checked · Card reference
Insufficient funds
Expanded Checkout card payments in the PayPal sandbox
4012888888881881
- Expiry
- Any future date
- CVC / CVV
- Any 3 digits
- First Name / Name on Card
CCREJECT-IFCase-sensitive rejection trigger
5120 / INSUFFICIENT_FUNDS
What to check in your appThe name trigger selects this response. Changing only the card number does not select the insufficient-funds test.
Use a sandbox client ID and sandbox API endpoints. For a rejection case, enter the exact trigger in First Name or Name on Card. These cases are for Expanded Checkout, not Braintree.
PayPal documentation · Checked · Card reference
Card refused
Expanded Checkout card payments in the PayPal sandbox
4012888888881881
- Expiry
- Any future date
- CVC / CVV
- Any 3 digits
- First Name / Name on Card
CCREJECT-REFUSEDCase-sensitive rejection trigger
0500 / DO_NOT_HONOR
What to check in your appCheck that the refused capture leaves the order unpaid and offers an appropriate next step.
Use a sandbox client ID and sandbox API endpoints. For a rejection case, enter the exact trigger in First Name or Name on Card. These cases are for Expanded Checkout, not Braintree.
PayPal documentation · Checked · Card reference
Expired card response
Expanded Checkout card payments in the PayPal sandbox
4012888888881881
- Expiry
- Any future date
- CVC / CVV
- Any 3 digits
- First Name / Name on Card
CCREJECT-ECCase-sensitive rejection trigger
5400 / EXPIRED_CARD
What to check in your appUse a future expiry date and the name trigger. A past date can stop the form before this sandbox response is reached.
Use a sandbox client ID and sandbox API endpoints. For a rejection case, enter the exact trigger in First Name or Name on Card. These cases are for Expanded Checkout, not Braintree.
PayPal documentation · Checked · Card reference
Security code check failure
Expanded Checkout card payments in the PayPal sandbox
4012888888881881
- Expiry
- Any future date
- CVC / CVV
- Any 3 digits
- First Name / Name on Card
CCREJECT-CVV_FCase-sensitive rejection trigger
00N7 / CVV2_FAILURE_POSSIBLE_RETRY_WITH_CVV
What to check in your appKeep the three-digit CVV field populated and use the name trigger to select the failed security-code check.
Use a sandbox client ID and sandbox API endpoints. For a rejection case, enter the exact trigger in First Name or Name on Card. These cases are for Expanded Checkout, not Braintree.
PayPal documentation · Checked · Card reference
These are selected cases, not every provider response. Account settings and request configuration still matter. The JSON is a test checklist, not an API request. Browse the full gateway reference →
Choose data that matches the layer you are testing
Local form behavior: use the full card generator for synthetic inputs. Check paste handling, field labels and brand changes without contacting a payment provider. For a repeatable dataset with a recorded seed, use the bulk generator.
Provider responses: use the selector above with your provider’s sandbox. A published card or trigger selects a documented test case; a randomly generated number does not promise that outcome. The gateway reference includes further providers and their different setup requirements.
Application behavior: record what should happen after the response. A declined payment should not create a paid order; successful authentication alone does not prove payment. Use the payment form checklist to connect inputs, expected observations and your own tests.
From a fixture to a reproducible test
- Choose the provider and scenario. Read the integration scope, expiry, security-code instructions and any additional trigger.
- Copy the card number for manual entry, or copy the JSON test checklist to keep the inputs and expectation together. It is not a provider API payload.
- Run the case in your own sandbox. Compare its actual response with the expectation, then check what your application shows and records.
For server-side order checks and webhook handling, open the Stripe integration guide. For capture-state checks, open the PayPal sandbox guide. Both include scoped offline examples; running those examples is separate from executing a provider sandbox test.
Use the testing guide directory to continue with authentication, validation rules or repeatable test-data workflows.
Frequently Asked Questions
Where is the full card generator?
Does choosing a scenario run a payment?
Why does PayPal use the same card for different failures?
Can I paste the copied JSON into a payment API?
Do local generators issue real cards or verify accounts?
Generating a number does not issue a card, create an account or provide payment authorization. The tool does not check issuer records, so it cannot guarantee that a generated digit sequence is unassigned. Use the output only in software you are authorized to test, never for a live payment or verification attempt.
A matching prefix, length or checksum describes a local input check. For simulated approvals, declines and authentication, use your provider’s documented test fixtures in its test environment.