Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cc.php error on checkout confirmation


sackling

Recommended Posts

I am getting this error at the top of the page at checkout confirmation:

 

Warning: str_repeat() [function.str-repeat]: Second argument has to be greater than or equal to 0 in /home1/mysite/public_html/includes/modules/payment/cc.php on line 137

 

This is what is on line 137:

 

  'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)),

 

Any advice on what I can do to fix this?

Link to comment
Share on other sites

If your site processes or stores CC info you'd better be PCI Compliant ( <= it's a link, click it to read more).

 

If you violate the PCI mandates and are caught fines can run in the hundreds of thousands of dollars and you can be banned from getting a merchant account for life...

:o

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...