Shredhead Posted January 6, 2005 Posted January 6, 2005 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
Guest Posted January 6, 2005 Posted January 6, 2005 You have to give us more information than that.... What contribution are you using? What numbers are you talking about updating? Bobby
Shredhead Posted January 6, 2005 Author Posted January 6, 2005 You have to give us more information than that.... What contribution are you using? What numbers are you talking about updating? Bobby <{POST_SNAPBACK}> 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
boxtel Posted January 6, 2005 Posted January 6, 2005 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 thisThe 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 <{POST_SNAPBACK}> 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
Shredhead Posted January 6, 2005 Author Posted January 6, 2005 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. <{POST_SNAPBACK}> so i just go in there and make up numbers?
boxtel Posted January 6, 2005 Posted January 6, 2005 so i just go in there and make up numbers? <{POST_SNAPBACK}> 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
Shredhead Posted January 6, 2005 Author Posted January 6, 2005 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. <{POST_SNAPBACK}> 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;
Rob123 Posted January 6, 2005 Posted January 6, 2005 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.