Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Credit card error text showing <br>


ibsteve

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted
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.

 

 

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

Posted

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

Posted

Thanks!

 

Should I assume this will be a problem on all warnings?

 

My best,

Steve

Thanks for the help,

 

Stephen Scheaffer

  • 4 weeks later...
Posted

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.

Posted

The only resolution for me so far is to remove the <br> tags. :(

Thanks for the help,

 

Stephen Scheaffer

Archived

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

×
×
  • Create New...