Jerry Sig Posted May 2, 2005 Share Posted May 2, 2005 When I enter a a card that doesn;t have the prefix number of 4111...... which is a visa card, by the way, How do i get to 51111..... card to be accepted, or 6111 card even. If i enter anything other than a 41111....... I get a error message.. My Payment gateway Authorize excepts visa, mastercard, discover, amer. ex. so they say it is what the shopping cart sends them is how it is processed. I guess the question is ........ is there a "global command" that allows me to use more than one credit card company or do i have to manually configure each type of credit card so that the shopping carts payment module will except any credit card ? if in the case where i need to configure each type of card, how do i change the default 41111....... I would rather regret trying something and failing at it, than wishing i did try it and never knowing the outcome. Link to comment Share on other sites More sharing options...
Guest Posted May 2, 2005 Share Posted May 2, 2005 it all depends upon the payment module you are using, what one do you have installed? if authorizenet with curl, in the admin modules payment you select the cards accepted per your payment gateway account Link to comment Share on other sites More sharing options...
Jerry Sig Posted May 2, 2005 Author Share Posted May 2, 2005 it is the authorise.net payment module, and from the admin screen there is nothing that lets you change it from 4111.... to anything else in looking thru the authorize php file, i don;t see anything that specifics a 4111.... credit card number as a default then again it maybe in some other location outside that modules php... I was hoping for a short cut if someone encountered this before quote=Mibble,May 2 2005, 12:56 PM] it all depends upon the payment module you are using, what one do you have installed? if authorizenet with curl, in the admin modules payment you select the cards accepted per your payment gateway account <{POST_SNAPBACK}> I would rather regret trying something and failing at it, than wishing i did try it and never knowing the outcome. Link to comment Share on other sites More sharing options...
Jerry Sig Posted May 2, 2005 Author Share Posted May 2, 2005 I have found this in the authorize php file, $cc_validation = new cc_validation(); $result = $cc_validation->validate($HTTP_POST_VARS['authorizenet_cc_number'], $HTTP_POST_VARS['authorizenet_cc_expires_month'], $HTTP_POST_VARS['authorizenet_cc_expires_year']); $error = ''; switch ($result) { case -1: $error = sprintf(TEXT_CCVAL_ERROR_UNKNOWN_CARD, substr($cc_validation->cc_number, 0, 4)); break; case -2: case -3: case -4: $error = TEXT_CCVAL_ERROR_INVALID_DATE; break; case false: $error = TEXT_CCVAL_ERROR_INVALID_NUMBER; break; would changing the ($cc_validation->cc_number, 0, 4)); to 06, then adding a case -5: and case -6: resolve this problem? it is the authorise.net payment module, and from the admin screen there is nothing that lets you change it from 4111.... to anything else in looking thru the authorize php file, i don;t see anything that specifics a 4111.... credit card number as a default then again it maybe in some other location outside that modules php... I was hoping for a short cut if someone encountered this before quote=Mibble,May 2 2005, 12:56 PM] it all depends upon the payment module you are using, what one do you have installed? if authorizenet with curl, in the admin modules payment you select the cards accepted per your payment gateway account <{POST_SNAPBACK}> <{POST_SNAPBACK}> I would rather regret trying something and failing at it, than wishing i did try it and never knowing the outcome. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.