Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

still having CC problem..plz help


Shredhead

Recommended Posts

Posted

i know i have to update the numbers but i have no idea how...i have search the contribution adn searched this forum but i still cannot figure it out please help....can someome walk me thru how to update....thanks

Posted

You have to give us more information than that....

 

What contribution are you using? What numbers are you talking about updating?

 

Bobby

Posted
You have to give us more information than that....

 

What contribution are you using?  What numbers are you talking about updating?

 

Bobby

 

i am not using any contribution...someone told to try and find one that updated the CC nmbers...when i try a valid CC it says this

 

 

The first four digits of the number entered are: blah blah<br>If that number is correct, we do not accept that type of credit card.<br>If it is wrong, please try again.

 

 

i need to walk me thru fixing this please

Posted
i am not using any contribution...someone told to try and find one that updated the CC nmbers...when i try a valid CC it says this

The first four digits of the number entered are: blah blah<br>If that number is correct, we do not accept that type of credit card.<br>If it is wrong, please try again.

i need to walk me thru fixing this please

 

 

well, you go into classes to look for cc_validation.php

 

there you will find the numbers that are accepted and the cards that go along with it.

 

adapt at your pleasure.

Treasurer MFC

Posted
well, you go into classes to look for cc_validation.php

 

there you will find the numbers that are accepted and the cards that go along with it.

 

adapt at your pleasure.

so i just go in there and make up numbers?

Posted

what credit card payment module are you using?

Posted
so i just go in there and make up numbers?

 

these are the numbers of the cards that are default accepted by the cc module.

If you have a valid card that starts with another number and you wish the cc module to accept that as well, yes, then you need to add those numbers.

 

all this module does is check if the cc number is a valid one based on the criteria of the cc numbers.

Treasurer MFC

Posted
these are the numbers of the cards that are default accepted by the cc module.

If you have a valid card that starts with another number and you wish the cc module to accept that as well, yes, then you need to add those numbers.

 

all this module does is check if the cc number is a valid one based on the criteria of the cc numbers.

is this where i add the numbers?..if so ...i have NO idea what to do..heh..sorry..please help me ob1 you my only hope..

 

 

function validate($number, $expiry_m, $expiry_y) {

$this->cc_number = ereg_replace('[^0-9]', '', $number);

 

if (ereg('^4[0-9]{12}([0-9]{3})?$', $this->cc_number)) {

$this->cc_type = 'Visa';

} elseif (ereg('^5[1-5][0-9]{14}$', $this->cc_number)) {

$this->cc_type = 'Master Card';

} elseif (ereg('^3[47][0-9]{13}$', $this->cc_number)) {

$this->cc_type = 'American Express';

} elseif (ereg('^3(0[0-5]|[68][0-9])[0-9]{11}$', $this->cc_number)) {

$this->cc_type = 'Diners Club';

} elseif (ereg('^6011[0-9]{12}$', $this->cc_number)) {

$this->cc_type = 'Discover';

} elseif (ereg('^(3[0-9]{4}|2131|1800)[0-9]{11}$', $this->cc_number)) {

$this->cc_type = 'JCB';

} elseif (ereg('^5610[0-9]{12}$', $this->cc_number)) {

$this->cc_type = 'Australian BankCard';

} else {

return -1;

Posted

Yes that is where you "add the numbers".

 

What is the criteria of the card you want to select?

For instance: 15 digits, must start with 1234 and can not end with a 0.

 

Without the additional information, it looks like we can only tell you to read up on the ereg function.

http://www.php.net/manual/en/function.ereg.php

 

The type of card might help, since someone may have already modified the function and can supply the code.

 

HTH,

Robert

Archived

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

×
×
  • Create New...