dalenbev Posted January 3, 2006 Share Posted January 3, 2006 I am getting this message Parse error: parse error, unexpected ')' in /home/sites/foxworxpaddle.com/public_html/store/includes/modules/payment/cc.php on line 161 in one of these lines and I can't seem to find it Please help a newbie out Thanks $confirmation = array('title' => $this->title . ': ' . $this->cc_card_type, 'fields' => array(array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER, 'field' => $HTTP_POST_VARS['cc_owner']), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER, 'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES, 'field' => strftime('%B, %Y', mktime(0,0,0,$HTTP_POST_VARS['cc_expires_month'], 1, '20' . $HTTP_POST_VARS['cc_expires_year']))), // begin cvv contribution array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_CVVNUMBER, 'field' => $HTTP_POST_VARS['cvvnumber']))); // end cvv contribution Link to comment Share on other sites More sharing options...
WebsiteManagers Posted January 3, 2006 Share Posted January 3, 2006 I am getting this message Parse error: parse error, unexpected ')' in /home/sites/foxworxpaddle.com/public_html/store/includes/modules/payment/cc.php on line 161 in one of these lines and I can't seem to find it Please help a newbie out Thanks $confirmation = array('title' => $this->title . ': ' . $this->cc_card_type, 'fields' => array(array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER, Unless you modified the cc.php file, the lines you're referencing start on line 133. The error points to line 161 which is: $this->cc_middle = substr($HTTP_POST_VARS['cc_number'], 4, ($len-8)); Jim Link to comment Share on other sites More sharing options...
dalenbev Posted January 3, 2006 Author Share Posted January 3, 2006 Unless you modified the cc.php file, the lines you're referencing start on line 133. The error points to line 161 which is: $this->cc_middle = substr($HTTP_POST_VARS['cc_number'], 4, ($len-8)); Jim I have modified the cc.php, I am trying to add the cvv by using the cvv 1.24 contribution I am in way oveer my head Dale Link to comment Share on other sites More sharing options...
WebsiteManagers Posted January 3, 2006 Share Posted January 3, 2006 I have modified the cc.php, I am trying to add the cvv by using the cvv 1.24 contributionI am in way oveer my head Dale There's one extra ')' at the end. Here's the code I plugged into cc.php and got rid of the errors: $confirmation = array('title' => $this->title . ': ' . $this->cc_card_type, 'fields' => array(array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER, 'field' => $HTTP_POST_VARS['cc_owner']), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER, 'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES, 'field' => strftime('%B, %Y', mktime(0,0,0,$HTTP_POST_VARS['cc_expires_month'], 1, '20' . $HTTP_POST_VARS['cc_expires_year']))), // begin cvv contribution array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_CVVNUMBER, 'field' => $HTTP_POST_VARS['cvvnumber'])); // end cvv contribution Jim Link to comment Share on other sites More sharing options...
dalenbev Posted January 3, 2006 Author Share Posted January 3, 2006 There's one extra ')' at the end. Here's the code I plugged into cc.php and got rid of the errors: $confirmation = array('title' => $this->title . ': ' . $this->cc_card_type, 'fields' => array(array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER, 'field' => $HTTP_POST_VARS['cc_owner']), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER, 'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES, 'field' => strftime('%B, %Y', mktime(0,0,0,$HTTP_POST_VARS['cc_expires_month'], 1, '20' . $HTTP_POST_VARS['cc_expires_year']))), // begin cvv contribution array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_CVVNUMBER, 'field' => $HTTP_POST_VARS['cvvnumber'])); // end cvv contribution Jim Now I get this message Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/sites/foxworxpaddle.com/public_html/store/includes/modules/payment/cc.php on line 108 and I think it is in this line // begin cvv contribution array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_CVVNUMBER . ' ' .'<a href="java script:popupWindow('' . tep_href_link(FILENAME_POPUP_CVV, '', 'SSL') . '')">' . TEXT_CVV_LINK . '</a>', 'field' => tep_draw_input_field('cvvnumber')))); // end cvv contribution Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.