ibsteve Posted January 5, 2005 Posted January 5, 2005 When I put an incorrect credit card number I get "Credit Card Error! The credit card number entered is invalid.<br>Please check the number and try again." Is there a place I can correct this? I am using the CC module. Thanks, Steve Thanks for the help, Stephen Scheaffer
Guest Posted January 5, 2005 Posted January 5, 2005 Are you testing with a valid card number? I'm pretty sure the function is designed to stop the customer and attempt to get a good number before it goes to your gateway. I used to process manually, and the number of 15 digit Visa cards and 17 digit mastercards etc really sucked.
ibsteve Posted January 5, 2005 Author Posted January 5, 2005 The problem isn't with the validation...I put in the incorrect cc number to see what it would return, the problem is that the text returned displayed the <br> tag. Thanks for the help, Stephen Scheaffer
boxtel Posted January 5, 2005 Posted January 5, 2005 The problem isn't with the validation...I put in the incorrect cc number to see what it would return, the problem is that the text returned displayed the <br> tag. <{POST_SNAPBACK}> I think it has something to do with this code in CC module: if ( ($result == false) || ($result < 1) ) { $payment_error_return = 'payment_error=' . $this->code . '&error=' . urlencode($error) . '&cc_owner=' . urlencode($HTTP_POST_VARS['cc_owner']) . '&cc_expires_month=' . $HTTP_POST_VARS['cc_expires_month'] . '&cc_expires_year=' . $HTTP_POST_VARS['cc_expires_year']; mostly the urlencode($error) I suspect Treasurer MFC
Rob123 Posted January 5, 2005 Posted January 5, 2005 There have been many threads on this subject. It seems the only solution is to remove the <br> from the define in catalog/includes/languages/english.php. define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'The credit card number entered is invalid.<br>Please check the number and try again.'); HTH, Robert
ibsteve Posted January 5, 2005 Author Posted January 5, 2005 Thanks! Should I assume this will be a problem on all warnings? My best, Steve Thanks for the help, Stephen Scheaffer
Guest Posted February 2, 2005 Posted February 2, 2005 Now that this is a month old thread.... ;) Is this still an unresolved issue? I'd really like to be able to pass breaks through the URL, but currently everything is converted to escape sequences.
ibsteve Posted February 3, 2005 Author Posted February 3, 2005 The only resolution for me so far is to remove the <br> tags. :( Thanks for the help, Stephen Scheaffer
Recommended Posts
Archived
This topic is now archived and is closed to further replies.