Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing Credit Card Valid From and Card Issue Number from checkout_confirmation.php


bluewaterbm

Recommended Posts

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

Link to comment
Share on other sites

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;
}

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 7 months later...

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 by kieran_mullen
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...