Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cc.php error on checkout confirmation


sackling

Recommended Posts

Posted

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?

Posted

actually just realized it is not "taking" the entered credit card number. and the field is left blank on confirmation.

 

This is now a pretty big problem!

Posted

You don't use the built-in credit card processing function -- it's not secure, and should be removed from osC. Use one of the add-ons or payment-gateway-supplied processors.

Posted

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 >

Archived

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

×
×
  • Create New...