Test Credit Card Numbers: How to Test Payments

March 31, 2022

Introduction

Customers expect a convenient, reliable, and fast checkout when paying online. Merchants need to work with PSPs, banks, ecommerce platforms, and other third-party providers to deliver engaging payment flows.

Integrating billing solutions can be challenging and requires extensive development and testing.

Conducting test card transactions is the easiest way to identify and resolve technical issues within the payment process.

Find out how test transactions work and ensure that your customers always complete their payments.

Merchant testing a transaction using test credit card numbers.

Why Do You Need Test Credit Card Numbers?

Merchants need to conduct many transactions in quick succession when testing or troubleshooting payment issues. Every transaction triggers a transactional event on a processing account.

Test credit card numbers enable merchants to perform an unlimited number of test transactions.

Using real credit cards for test transactions is not recommended. For security reasons, payment processors and banks typically limit the number of transactions a customer can make in a short period.

Additionally, merchants may need to refund or cancel these transactions, which introduces errors in merchant transaction reports and may raise a concern with the issuing bank.

Payment service providers (PSPs) have specific test card numbers for triggering individual transactional events. Merchants need to obtain the correct test credit card numbers and test transaction procedures from their PSP to generate specific events and receive the expected results.


Note: Refer to our post What Is a Payment Processor to learn everything you need to know about how a processor works.


When to Use Test Credit Card Numbers?

Test transactions are essential for identifying technical issues in the payment process and confirming that transactional events unfold as intended. They are an integral part of the development process and vital for facilitating third-party integrations.

Merchants use test card numbers to:

  • Ensure that all systems work correctly.
  • Test new online payment forms and flows.
  • Identify possible issues before launching a new project.
  • Check if a third-party service was successfully integrated.
  • Test event-driven APIs to ensure that scripts and endpoints are working.
  • Develop new services or products.
  • Address complaints from customers when they were not able to complete their purchases.
  • Test payment flows if the web host, payment processor, or third-party software introduces new features.

Test transactions need to be conducted regularly and thoroughly. Merchants should test card numbers for all major card brands and try to emulate all relevant payment scenarios.

How to Use Test Credit Card Numbers?

CCBill provides a broad set of test card numbers that merchants can utilize to conduct test transactions on their accounts. Test card numbers include different card types from major payment card brands and can be used to generate different approval or denial responses.

CCBill requires merchants to create a unique test user in the CCBill Admin to prevent unauthorized individuals from conducting test transactions.

When processing test transactions, CCBill’s system checks if:

  1. The test user is utilizing the registered email address.
  2. The test user is accessing the payment form from the registered IP address.
  3. The test credit card number is correct.

Once a merchant creates a test transaction user with the corresponding IP and email address, they can use a payment form to conduct test transactions.

Set Up a Test Transaction User

To create a test transaction user in the CCBill Admin panel:

1. Access the CCBill Admin.

2. Expand the Account Info tab.

3. Select Transaction Test Settings.

Stpes to create a test transaction user in the CCBill Admin portal.

4. Click Create New User.

Create a new test user in the CCBill Admin.

5. Type the Email address that you plan to use for test transactions.

6. Enter a Low and High IP Address. You can enter the same IP address in both fields or define an IP range.

7. Click Update to create the test user.

Adding test transaction parameters in CCBill Admin.

Successful test transactions can only be performed by individuals that access the payment form from the registered IP and use the correct email address.

Conduct Test Transaction

After setting up a Test Transactions User, merchants can visit a payment form and perform a test transaction. This example shows how to complete a test transaction using CCBill FlexForms:

1. Access the CCBill Admin.

2. Select FlexForms Systems.

3. Click FlexForms Payment Links.

FlexForms menu in the CCBill Admin.

4. Toggle the switch to select Sandbox or Live mode. It is possible to run tests in both modes. If testing FlexForms in Sandbox mode, use a CVV value above 300. All values below 300 result in a denied transaction.


Note: To learn what is CVV and CVC and how they differ, check out our CVV vs CVC article.


5. Access a FlexForm by clicking the corresponding Web Widget link.

CCBill FlexForms mode and Web Widget link.

6. Enter the required information in the fields marked with a red asterisk.

7. The email address in the Email field needs to correspond to the test user’s email.

8. Enter the desired test card number in the Credit Card Number field.

Test transaction using test card numbers on CCBill's payment form.

9. Click Place your order to complete the test transaction.

The individual conducting the test transaction must always access the payment form from the IP address registered for the test user.

Test Credit Card Numbers

Merchants can use the following test card types and numbers to perform test transactions and generate specific responses.

Card TypeCard NumberResults
Visa4444444444446666Approval
Visa4444444444444422Denial (Risk)
Visa4444444444444455Denial (Banking)
Mastercard5555555555557777Approval
Mastercard5555555555559922Denial (Risk)
Mastercard5555555555559955Denial (Banking)
Diner's30333333333333Approval
Diner's30666666666666Denial (Risk)
Diner's30000000000004Denial (Banking)
Discover6555555555555555Approval
Discover6444444444444443Denial (Risk)
Discover6222222222222225Denial (Banking)
JCB3555555555555552Approval
JCB3544444444444449Denial (Risk)
JCB3533333333333339Denial (Banking)
Maestro6304444444444442Approval
Maestro6759999999999991Denial (Risk)
Maestro6761111111111119Denial (Banking)

Conclusion

You know what test payment card numbers to use and how to perform test transactions with CCBill payment forms. These tools are going to help you resolve payment issues quickly and develop engaging payment flows for your customers.

Find out why hosted payment pages are crucial for optimizing the payment process on your website.

About the author
Vladimir Kaplarevic
Vladimir is a resident Tech Writer at CCBill. He has more than 8 years of experience in implementing e-commerce and online payment solutions with various global IT services providers. His engaging writing style provides practical advice and aims to spark curiosity for innovative technologies.
Talk to a Merchant Support Specialist