Testing payment

Quick Tip

Payment forms connected to Stripe can test payments in the form preview.

If you’d like to test your Cognito Form without processing a real payment, you can select Preview from your form builder. Here, you can fill out your form as your user would, ensuring any calculations and all of your payment fields work correctly. Then, you can use a test credit card number (from the list below) to test the payment process. You can only do this while you’re previewing your form — using a test credit card number on a live form will return a declined payment.

This test transaction will not appear in your Cognito Form entries or trigger email notifications. However, it will appear in your Stripe account, under your Test payments. You can access these by switching the slider in the top left from Live to Test and selecting Payments.

Test credit card numbers

There are multiple test credit card numbers that can be used during the preview mode. Any future expiration date and any CVV code will work with the following card numbers:

Number Card
4242 4242 4242 4242 Visa
4012 8888 8888 1881 Visa
4000 0566 5566 5556 Visa (Debit)
5555 5555 5555 4444 MasterCard
5200 8282 8282 8210 MasterCard (debit)
5105 1051 0510 5100 MasterCard (prepaid)
3782 822463 10005 American Express
3714 496353 98431 American Express
6011 1111 1111 1117 Discover
6011 0009 9013 9424 Discover
Support