snubbr.com

Verisign SSL: Setup a secure connection between user and server?

Get a Verisign SSL certificate for 30 days FREE. Click here to use coupon...

Get a free trial of Verisign SSL certificates. Click here for this special deal...
First off, Verisign SSL: Setup a secure connection between user and server? Looking forward for any response. Another question I got... I am doing some testing on my Verisign site and I want to show 2 different credit card modules. I know it doesn't make sense, but it is for some testing..

Anyway, the first module is the linkpoint module and it works just fine. I want to also enable the default cc mod and set it at sort order 2..

If I do this, the default module works, but the first module (linkpoint) will not. The radio button beside the linkpoint mod is checked automatically, but if you enter your info there, then click continue, the Verisign website returns an error saying 'check your credit card details'. If you use the other box to enter info, it will work. It will work no matter which radio button is checked..

So obviously, when using the linkpoint mod, the error comes from the Verisign website looking for info in the second box, even though you have the first radio button checked..

Where would this conflict be coming from? I would appreciate any suggestions as to what needs changing..

Tim..

Comments (88)

That's a good question. I'm not sure what is the answer. I'll do some poking around and get back to you if I discover an decent answer. You should email the people at Verisign as they probably can help you..

Comment #1

I am still playing around with this problem. If I go back to just one cc module, I am getting an error in the bottom left corner..

Line 87.

Char 1.

Error document checkout_payment.payment.0 is null or not an object.

Code 0.

The Verisign site is working, but is this the cause of my problem when enabling 2 cc mods? If so, what is the cause?.

Here is my checkout_payment file down to line 122.

Line 87 says.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

<?php.

/*.

$Id: checkout_payment.php,v 1.113 2003/06/29 23:03:27 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright (c) 2003 osCommerce.

Released under the GNU General Public License.

*/.

Require('includes/application_top.php');.

// if the customer is not logged on, redirect them to the login page.

If (!tep_session_is_registered('customer_id')) {.

$navigation->set_snapshot();.

Tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));.

}.

// if there is nothing in the customers cart, redirect them to the shopping cart page.

If ($cart->count_contents() < 1) {.

Tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));.

}.

// if no shipping method has been selected, redirect the customer to the shipping method selection page.

If (!tep_session_is_registered('shipping')) {.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));.

}.

// avoid hack attempts during the checkout procedure by checking the internal cartID.

If (isset($cart->cartID) && tep_session_is_registered('cartID')) {.

If ($cart->cartID != $cartID) {.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));.

}.

}.

// Stock Check.

If ( (STOCK_CHECK == 'true') && (STOCK_ALLOW_CHECKOUT != 'true') ) {.

$products = $cart->get_products();.

For ($i=0, $n=sizeof($products); $i<$n; $i++) {.

If (tep_check_stock($products[$i]['id'], $products[$i]['quantity'])) {.

Tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));.

Break;.

}.

}.

}.

// if no billing destination address was selected, use the customers own address as default.

If (!tep_session_is_registered('billto')) {.

Tep_session_register('billto');.

$billto = $customer_default_address_id;.

} else {.

// verify the selected billing address.

$check_address_query = tep_db_query("select count(*) as total from "TABLE_ADDRESS_BOOK" where customers_id = '"(int)$customer_id"' and address_book_id = '"(int)$billto"'");.

$check_address = tep_db_fetch_array($check_address_query);.

If ($check_address['total'] != '1') {.

$billto = $customer_default_address_id;.

If (tep_session_is_registered('payment')) tep_session_unregister('payment');.

}.

}.

Require(DIR_WS_CLASSES'order.php');.

$order = new order;.

If (!tep_session_is_registered('comments')) tep_session_register('comments');.

$total_weight = $cart->show_weight();.

$total_count = $cart->count_contents();.

// load all enabled payment modules.

Require(DIR_WS_CLASSES'payment.php');.

$payment_modules = new payment;.

Require(DIR_WS_LANGUAGES$language'/'FILENAME_CHECKOUT_PAYMENT);.

$breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));.

$breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>.

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">.

<title><?php echo TITLE; ?></title>.

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

<script language="javascript"><!.

Var selected;.

Function selectRowEffect(object, buttonSelect) {.

If (!selected) {.

If (document.getElementById) {.

Selected = document.getElementById('defaultSelected');.

} else {.

Selected = document.all['defaultSelected'];.

}.

}.

If (selected) selected.className = 'moduleRow';.

Object.className = 'moduleRowSelected';.

Selected = object;.

// one button is not an array.

If (document.checkout_payment.payment[0]) {.

Document.checkout_payment.payment[buttonSelect].checked=true;.

} else {.

Document.checkout_payment.payment.checked=true;.

}.

}.

Function rowOverEffect(object) {.

If (object.className == 'moduleRow') object.className = 'moduleRowOver';.

}.

Function rowOutEffect(object) {.

If (object.className == 'moduleRowOver') object.className = 'moduleRow';.

}.

Function popupWindow(url) {.

Window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re.

Sizable=yes,copyhistory=no,width=450,height=500,screenX=150,screenY=30,top=30,lef.

T=150') }.

//></script>..

Comment #2

Shameless bump..

I need to offer two different payment options depending upon the customer...

Comment #3

I have not looked at the linkpoint module but it could be because the label for the input boxes are named the same and causing conflict when displayed on the same page...

Comment #4

Thanks AB that is somewhere to start. I will look into that tomorrow when my shipping is caught up..

I had another idea; Look Out it could be dangerous!.

I could easily copy the continue button on checkout_shipping and have 2 buttons. One for wholesale and one for dropship customers. One button takes you to checkout_payment and the other would take you to checkout_payment_ds.

Checkout_payment_ds would be a copy of the default payment page. The only change I need to make (I believe) is alter the code where payment modules are loaded. Is it possible to load only payment modules with a sort order = to 1 on one page and load modules with a sort order = to 2 on the other?.

If someone could help me out on this I would greatly appreciate it..

Tim..

Comment #5

Have you checked out SPPC to see if there is anything in that contribution that might help you...

Comment #6

I have not checked out that mod. I believe that does separate pricing, not separate payment. I will look though and see if there is some code that I could tweak for my own purpose..

Thanks again,.

Tim..

Comment #7

You are correct in that the input boxes are all named the same. I believe it would be easier to alter those boxes rather than create a new payment page. I was browsing through a couple payment files and there are numerous references to checkout_payment that would undoubtedly need changing if I went with my second idea..

So if I go with changing the names of the input fields in the default mod cc.php.

Tep_draw_input_field('cc_number')).

To say:.

Tep_draw_input_field('ds_cc_number')).

How many other files need to be updated. So the checkout process will still work. Do I need database changes as well since the input fields are different?.

Tim..

Comment #8

I am doing some testing on my Verisign site and I want to show 2 different credit card modules. I know it doesn't make sense, but it is for some testing..

Anyway, the first module is the linkpoint module and it works just fine. I want to also enable the default cc mod and set it at sort order 2..

If I do this, the default module works, but the first module (linkpoint) will not. The radio button beside the linkpoint mod is checked automatically, but if you enter your info there, then click continue, the Verisign website returns an error saying 'check your credit card details'. If you use the other box to enter info, it will work. It will work no matter which radio button is checked..

So obviously, when using the linkpoint mod, the error comes from the Verisign website looking for info in the second box, even though you have the first radio button checked..

Where would this conflict be coming from? I would appreciate any suggestions as to what needs changing..

Tim..

Comment #9

I changed the sort order so the default mod is first and linkpoint second. I get the same scenario. Only the second mod works, and it works no matter which radio button is selected..

So I guess the problem is in checkout_payment.php or payment.php..

But all works fine if I have one cc mod and a money order mod. The radio buttons do what they are supposed to do in that situation..

Am I trying to perform the impossible because both mods are credit card?..

Comment #10


This question was taken from a support group/message board and re-posted here so others can learn from it.

 

Categories: Home | Diet & Weight Management | Vitamins & Supplements | Herbs & Cleansing |

Sexual Health | Medifast Support | Nutrisystem Support | Medifast Questions |

Web Hosting | Web Hosts | Website Hosting | Hosting |

Web Hosting | GoDaddy | Digital Cameras | Best WebHosts |

Web Hosting FAQ | Web Hosts FAQ | Hosting FAQ | Hosting Group |

Hosting Questions | Camera Tips | Best Cameras To Buy | Best Cameras This Year |

Camera Q-A | Digital Cameras Q-A | Camera Forum | Nov 2010 - Cameras |

Oct 2010 - Cameras | Oct 2010 - DSLRs | Oct 2010 - Camera Tips | Sep 2010 - Cameras |

Sep 2010 - DSLRS | Sep 2010 - Camera Tips | Aug 2010 - Cameras | Aug 2010 - DSLR Tips |

Aug 2010 - Camera Tips | July 2010 - Cameras | July 2010 - Nikon Cameras | July 2010 - Canon Cameras |

July 2010 - Pentax Cameras | Medifast Recipes | Medifast Recipes Tips | Medifast Recipes Strategies |

Medifast Recipes Experiences | Medifast Recipes Group | Medifast Recipes Forum | Medifast Support Strategies |

Medifast Support Experiences |

 

(C) Copyright 2010 All rights reserved.