bluewaterbm Posted October 30, 2010 Posted October 30, 2010 I was removing Card Valid Date and Card Issue Number: (for Maestro and Solo cards only) from my order confirmation page for PayPal pro I have mostly succeeded except for I have two little “( (“ left behind on last line. I commented out the areas that control this in PayPal direct.php This is how it looks: Payment Information Card Owner: Card Type: Card Number: Card Expiry Date: Card Security Code (CVV2): ( ( Can someone please look at my code and tell me where I went wrong. $confirmation = array('fields' => array(array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_OWNER, 'field' => tep_draw_input_field('cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_TYPE, 'field' => tep_draw_pull_down_menu('cc_type', $types_array)), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_NUMBER, 'field' => tep_draw_input_field('cc_number_nh-dns')), // array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_VALID_FROM, // 'field' => tep_draw_pull_down_menu('cc_starts_month', $months_array) . ' ' . tep_draw_pull_down_menu('cc_starts_year', $year_valid_from_array) . ' ' . MODULE_PAYMENT_PAYPAL_DIRECT_CARD_VALID_FROM_INFO), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_EXPIRES, 'field' => tep_draw_pull_down_menu('cc_expires_month', $months_array) . ' ' . tep_draw_pull_down_menu('cc_expires_year', $year_expires_array)), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_CVC, 'field' => tep_draw_input_field('cc_cvc_nh-dns', '', 'size="5" maxlength="4"')), // array ('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_ISSUE_NUMBER, // 'field' => tep_draw_input_field('cc_issue_nh-dns', '', 'size="3" maxlength="2"') . ' ' . MODULE_PAYMENT_PAYPAL_DIRECT_CARD_ISSUE_NUMBER_INFO)); return $confirmation; } Thanks Quote
web-project Posted October 31, 2010 Posted October 31, 2010 try: $confirmation = array('fields' => array(array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_OWNER, 'field' => tep_draw_input_field('cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_TYPE, 'field' => tep_draw_pull_down_menu('cc_type', $types_array)), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_NUMBER, 'field' => tep_draw_input_field('cc_number_nh-dns')), // array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_VALID_FROM, // 'field' => tep_draw_pull_down_menu('cc_starts_month', $months_array) . ' ' . tep_draw_pull_down_menu('cc_starts_year', $year_valid_from_array) . ' ' . MODULE_PAYMENT_PAYPAL_DIRECT_CARD_VALID_FROM_INFO), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_EXPIRES, 'field' => tep_draw_pull_down_menu('cc_expires_month', $months_array) . ' ' . tep_draw_pull_down_menu('cc_expires_year', $year_expires_array)), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_CVC, 'field' => tep_draw_input_field('cc_cvc_nh-dns', '', 'size="5" maxlength="4"')); return $confirmation; } Quote Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you.
bluewaterbm Posted November 1, 2010 Author Posted November 1, 2010 try: $confirmation = array('fields' => array(array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_OWNER, 'field' => tep_draw_input_field('cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_TYPE, 'field' => tep_draw_pull_down_menu('cc_type', $types_array)), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_NUMBER, 'field' => tep_draw_input_field('cc_number_nh-dns')), // array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_VALID_FROM, // 'field' => tep_draw_pull_down_menu('cc_starts_month', $months_array) . ' ' . tep_draw_pull_down_menu('cc_starts_year', $year_valid_from_array) . ' ' . MODULE_PAYMENT_PAYPAL_DIRECT_CARD_VALID_FROM_INFO), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_EXPIRES, 'field' => tep_draw_pull_down_menu('cc_expires_month', $months_array) . ' ' . tep_draw_pull_down_menu('cc_expires_year', $year_expires_array)), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_CVC, 'field' => tep_draw_input_field('cc_cvc_nh-dns', '', 'size="5" maxlength="4"')); return $confirmation; } I tried that and I get: Parse error: syntax error, unexpected ';', expecting ')' in /home/content/******/includes/modules/payment/paypal_direct.php on line 116 Quote
kieran_mullen Posted June 16, 2011 Posted June 16, 2011 I copied and pasted and got the same error as well. I tried that and I get: Parse error: syntax error, unexpected ';', expecting ')' in /home/content/******/includes/modules/payment/paypal_direct.php on line 116 Quote
kieran_mullen Posted June 16, 2011 Posted June 16, 2011 (edited) I put this in and all was well.. $confirmation = array('fields' => array(array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_OWNER, 'field' => tep_draw_input_field('cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_TYPE, 'field' => tep_draw_pull_down_menu('cc_type', $types_array)), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_NUMBER, 'field' => tep_draw_input_field('cc_number_nh-dns')), // array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_VALID_FROM, // 'field' => tep_draw_pull_down_menu('cc_starts_month', $months_array) . ' ' . tep_draw_pull_down_menu('cc_starts_year', $year_valid_from_array) . ' ' . MODULE_PAYMENT_PAYPAL_DIRECT_CARD_VALID_FROM_INFO), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_EXPIRES, 'field' => tep_draw_pull_down_menu('cc_expires_month', $months_array) . ' ' . tep_draw_pull_down_menu('cc_expires_year', $year_expires_array)), array('title' => MODULE_PAYMENT_PAYPAL_DIRECT_CARD_CVC, 'field' => tep_draw_input_field('cc_cvc_nh-dns', '', 'size="5" maxlength="4"')), )); return $confirmation; } Edited June 16, 2011 by kieran_mullen Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.