Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Addon Payment Modules / Problem in checkout confirmation step

Problem in checkout confirmation step

Locked

Started by superprg on 14 Nov 2006, 8:27 PM · Views: 2,447

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
14 Nov 2006, 8:27 PM
#1
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Problem in checkout confirmation step

I was trying to sort out the problem with one of the payment module.
For my local install, when I said (in the file includes\templates\template_default\templates\tpl_checkout_confirmation_default.php)
echo "$form_action_url";
I get the value as
https://secure.authorize.net/gateway/transact.dll

When I tried to do with one of the live site
I get the value of $form_action_url as

which is different from what was supposed to be
https://gateway.usight.com/postauth.secure
(taken from https://gateway.usight.com/post_auth.jsp)
So I assigned $form_action_url="https://gateway.usight.com/postauth.secure" just to test if it starts working but after the checkout it asks to download the file postauth.secure containing all the info which is getting passed

Sample info which I am getting is

<form name="checkout_confirmation" action="https://urltomysite/index.php?main_page=checkout_process&zenid=4903780f82614bad49351ff0957380ac" 
method="post" id="checkout_confirmation" onsubmit="submitonce();">
<input type="hidden" name="GWUsername" value="user" />
<input type="hidden" name="GWCardNumber" value="4111111111111111" />
<input type="hidden" name="CVV2" /><input type="hidden" name="GWCardExpMonth" value="01" />
<input type="hidden" name="GWCardExpYear" value="2007" />
<input type="hidden" name="GWAmount" value="20.45" />
<input type="hidden" name="Email" value="[email protected]" />
<input type="hidden" name="GWBillingFirstName" value="Steve" />
<input type="hidden" name="GWBillingLastName" value="Ryden" />
<input type="hidden" name="GWNameOnCard" value="Steve Ryden" />
<input type="hidden" name="GWBillingAddress" value="234, Blue Park" />
<input type="hidden" name="GWBillingCity" value="Florida" />
<input type="hidden" name="GWBillingState" value="NA" />
<input type="hidden" name="GWBillingZip" value="34664" />
<input type="hidden" name="GWBillingCountry" value="US" />
<input type="hidden" name="Phone" value="7898278936" />
<input type="hidden" name="InvoiceNo" value="slf20061114123022" />
<input type="hidden" name="Description" value="Order Submitted from IP:" />
<input type="hidden" name="Customer_id" />
<input type="hidden" name="zenid" value="4903780f82614bad49351ff0957380ac" />
<div class="buttonRow forward">
<input type="image" src="includes/templates/farm/buttons/english/button_confirm_order.gif" alt="Confirm Order" title=" Confirm Order " name="btn_submit" id="btn_submit" /></div>
</form>

These values indicate that usight.php has been used and these variables are getting passed

Few questions:

  1. Is this the correct approach to handle this situation?
  2. Where does the variable $form_action_url gets its value from and why is it not automatically picking up https://gateway.usight.com/postauth.secure

Thanks for the help

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

14 Nov 2006, 10:54 PM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Problem in checkout confirmation step

Fine, I have been successful in redirecting to the payment gateway but after the transaction is over and GWReturnURL=return page is shown, my cart doesnt gets empty
What might be causing this?
I know that it goes to header_php.php in checkout_process which looks fine to me

<?php
/**
 * Checkout Process Page 
 * 
 * @package page
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: header_php.php 2978 2006-02-07 00:52:01Z drbyte $
 */ 

  require(DIR_WS_MODULES . zen_get_module_directory('checkout_process.php'));

// load the after_process function from the payment modules
  $payment_modules->after_process();

  $_SESSION['cart']->reset(true);

// unregister session variables used during checkout
  unset($_SESSION['sendto']);
  unset($_SESSION['billto']);
  unset($_SESSION['shipping']);
  unset($_SESSION['payment']);
  unset($_SESSION['comments']);
  $order_total_modules->clear_posts();//ICW ADDED FOR CREDIT CLASS SYSTEM

  zen_redirect(zen_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));

  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

Please help

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

15 Nov 2006, 12:53 PM
#3
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Problem in checkout confirmation step

Anyone please help?

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

10 Dec 2006, 12:58 AM
#4
barnamania avatar

barnamania

Zen Follower

Join Date:
Nov 2006
Location:
London, UK
Posts:
67
Plugin Contributions:
0

Re: Problem in checkout confirmation step

Hi, I've also been looking at / editing all these files and they're really tricky. Your code looks fine to me, so I can't imagine what the problem is. I hope you get it sorted somehow. Best idea I can think of: re-upload all the files that could be causing the problem and start over (i've done that so many times!)

10 Dec 2006, 5:08 AM
#5
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Problem in checkout confirmation step

Are you using POST or GET requests when doing the transaction is being processed?

Also got a link I can look at with a test product maybe?

Rob

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered