Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Authorize.net - adding images after fields......


carpenoctem

Recommended Posts

in the authorize.net module, i added in some code to make a little "lock" appear after the Credit Card field, and also the Date field.

 

it looked fine..... but whenever the page loaded it gave me a popup saying....

 

This page contains secure and non secure items, do you want to continue loading.....

 

what can i do to make it so that the locks appear, but that popup doesnt?

 

the code that i have is

 

if(MODULE_PAYMENT_AUTHORIZENET_CCV == 'True' ) {

$selection = array('id' => $this->code,

'module' => $this->title . '     ' . $this->get_cc_images(),

'fields' => array(array('title' => MODULE_PAYMENT_AUTHORIZENET_TEXT_CREDIT_CARD_TYPE,

'field' => tep_draw_pull_down_menu('credit_card_type', $card_menu)),

array('title' => MODULE_PAYMENT_AUTHORIZENET_TEXT_CREDIT_CARD_OWNER,

'field' => tep_draw_input_field('authorizenet_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])),

'field' => tep_draw_input_field('authorizenet_cc_number') . '<img src="http://www.mydomain.com/images/lock.gif>'),

array('title' => MODULE_PAYMENT_AUTHORIZENET_TEXT_CREDIT_CARD_EXPIRES,

'field' => tep_draw_pull_down_menu('authorizenet_cc_expires_month', $expires_month) . ' ' . tep_draw_pull_down_menu('authorizenet_cc_expires_year', $expires_year)),

array('title' => '<b>CVV number</b> ' . ' ' .'<a href="java script:CVVPopUpWindow(\'' . tep_href_link('cvv.html') . '\')">' . '<u><i><b>' . '(' . MODULE_PAYMENT_AUTHORIZENET_TEXT_CVV_LINK . ')' . '</i></u></b></a>',

'field' => tep_draw_input_field('cvv','',"SIZE=4, MAXLENGTH=4"))));

Link to comment
Share on other sites

in the authorize.net module, i added in some code to make a little "lock" appear after the Credit Card field, and also the Date field.

 

it looked fine..... but whenever the page loaded it gave me a popup saying....

 

This page contains secure and non secure items, do you want to continue loading.....

 

what can i do to make it so that the locks appear, but that popup doesnt?

 

the code that i have is

 

if(MODULE_PAYMENT_AUTHORIZENET_CCV == 'True' ) {

$selection = array('id' => $this->code,

'module' => $this->title . '     ' . $this->get_cc_images(),

'fields' => array(array('title' => MODULE_PAYMENT_AUTHORIZENET_TEXT_CREDIT_CARD_TYPE,

'field' => tep_draw_pull_down_menu('credit_card_type', $card_menu)),

array('title' => MODULE_PAYMENT_AUTHORIZENET_TEXT_CREDIT_CARD_OWNER,

'field' => tep_draw_input_field('authorizenet_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])),

'field' => tep_draw_input_field('authorizenet_cc_number') . '<img src="http://www.mydomain.com/images/lock.gif>'),

array('title' => MODULE_PAYMENT_AUTHORIZENET_TEXT_CREDIT_CARD_EXPIRES,

'field' => tep_draw_pull_down_menu('authorizenet_cc_expires_month', $expires_month) . ' ' . tep_draw_pull_down_menu('authorizenet_cc_expires_year', $expires_year)),

array('title' => '<b>CVV number</b> ' . ' ' .'<a href="java script:CVVPopUpWindow(\'' . tep_href_link('cvv.html') . '\')">' . '<u><i><b>' . '(' . MODULE_PAYMENT_AUTHORIZENET_TEXT_CVV_LINK . ')' . '</i></u></b></a>',

'field' => tep_draw_input_field('cvv','',"SIZE=4, MAXLENGTH=4"))));

 

Change http://www.mydomain.com/images/lock.gif to

images/lock.gif

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...