Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[URGENT] oscommerce checks credit card number format


Guest

Recommended Posts

The payment gateway company (Iveri) we're using gives us 4 test credit card numbers to use, which they monitor before we go live.

 

The numbers are in the format of e.g. 2424242424242424

 

Oscommerce does not accept a number of that format, see below:

 

"

Credit Card Error!

The first four digits of the number entered are: 2424

If that number is correct, we do not accept that type of credit card.

If it is wrong, please try again.

"

 

We HAVE to use the supplied test card numbers else we cant go live.

 

Is there a way to disable the card number validation in the system?

 

Thanks

Link to comment
Share on other sites

You could add a test card case in the catalog\includes\classes\cc_validation.php

 

	  } elseif (ereg('^2424[2-4]{12}$', $this->cc_number)) {
	$this->cc_type = 'Test Card';

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...