Guest cdupuis Posted November 1, 2007 Share Posted November 1, 2007 I had a problem where people could not pay using an American Express card. In case any other person has it here is the solution that was provided right away by Cubecart: ================Beginning================= Please can you open classes/validate/validateCart.php Find line: 48 $americanExpress = "^3[47][0-9]{13}$"; Replace with: $americanExpress = "((^3[47])|(^3[37]))((\d{11}$)|(\d{13}$))"; That allows the card length to be 13 or 15 digits long starting 47 or 37. =============== End ====================== Take care Clement Quote Link to comment Share on other sites More sharing options...
Guest mhilliard Posted March 12, 2008 Share Posted March 12, 2008 $americanExpress = "((^3[47])|(^3[37]))((\d{11}$)|(\d{13}$))"; I haven't been able to get this to work... has anyone else run into this and made the AMEX validation work? Help! Quote Link to comment Share on other sites More sharing options...
Guest akumar Posted June 20, 2008 Share Posted June 20, 2008 is this still the same solution? Quote Link to comment Share on other sites More sharing options...
kyle Posted December 15, 2008 Share Posted December 15, 2008 The new string in CC4.3 classes/validate/validateCart.php is: 'AMERICAN EXPRESS' => '#^[34|37|47]([0-9]{14}|[0-9]{13}|[0-9]{12})$#', I just had a customer that had problems with her AmEx card on an order but was able to place the order with a different card. Anyone else having trouble with American Express cards using PayPal Pro via Alternative Checkout? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.