Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tying to add a cvv explanation to ipayment


Guest

Recommended Posts

Hi group,

I ave been trying to add a cvv explanation popup to the great Ipayment contribution of Henri Schmidhuber.

I thought of recycling a previous cvv popup used in the old style cc.php

 

in this previous contrib the resulting HTML javascript call is this one:

 

<td class="main">3 oder 4stellige Sicherheitsnummer (KPN):

<a href="java script:popupWindow('http://127.0.0.1/www.my-shop.de/catalog/popup_cvv.php?osCsid=3vmkeu6pvl0u6gluajpdoal886')"><u>[wo ist die KPN zu finden?]</u></a></td>

 

and works prefectly.

 

in my mod the resulting HTML javascript call is this one

 

<td class="main"><input type="text" name="cc_checkcode" size="5" maxlength="4"> / 

<a href="java script:popupWindow('http://127.0.0.1/www.my-shop.de/catalog/popup_cvv.php?osCsid=3vmkeu6pvl0u6gluajpdoal886')"><u>[wo ist die KPN zu finden?]</u></a></td>

 

and does not work.

The Firefox error console diplays "popupWindow is not defined".

 

I have been searching and searching and cannot find why the second call does not work.

Has someone got a clue?

 

The PHP codes are respectively:

working:

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>',

 

non working:

array('title' => MODULE_PAYMENT_IPAYMENT_CC_TEXT_CREDIT_CARD_CHECKNUMBER, 'field' => tep_draw_input_field('cc_checkcode', '', 'size="5" maxlength="4"' ) . ' <- ' . '<a href="java script:popupWindow(\'' . tep_href_link(FILENAME_POPUP_CVV, '', 'SSL') . '\')">' . TEXT_CVV_LINK . '</a>' )

 

Could it have been, that the problem is due to the different issuing transaction?

the working code is built in checkout_payment.php, the non-working ist build in checkout_confirmation.php.

 

I am clueless, any help would be highly appreciated.

 

Thank you.

 

rin67630

Link to comment
Share on other sites

P.S.

All variables used in the popup are declared in the corresponding language/german/modules/payment/ipayment_cc.php.

The popup itself don't appear to be the problem, it's the call out of checkout_confirmation.php that does not even seem to start...

:(

rin67630

Link to comment
Share on other sites

P.S.

All variables used in the popup are declared in the corresponding language/german/modules/payment/ipayment_cc.php.

The popup itself don't appear to be the problem, it's the call out of checkout_confirmation.php that does not even seem to start...

:(

rin67630

 

I finally used another way to call up the popup.

It works now.

Thanks anyway.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...