sackling Posted November 26, 2009 Share Posted November 26, 2009 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 More sharing options...
sackling Posted November 26, 2009 Author Share Posted November 26, 2009 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! Link to comment Share on other sites More sharing options...
MrPhil Posted November 26, 2009 Share Posted November 26, 2009 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. Link to comment Share on other sites More sharing options...
germ Posted November 27, 2009 Share Posted November 27, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.