Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with redirect after payment is made


netwerkjim

Recommended Posts

Hi, for some reason which I can't figure out, once you make a purchase using a credit card and click confirm order button your taken to the Linkpoint connect page that displays the information about you and your purchase. from there your suppose to click either a back button or a continue button. When you do this it tries to take you catalog/checkout_process.php but instead you get a HTTP 404 - File not found error page. when it should take you to the catalog/checkout_success.php page like it does if you pay with a check or money order.

could someone take a look at this code and let me know if the see something wrong with it that would cause this not to redirect to the checkout_success.php page, here's the checkout_confirmation.php page

 

 

<?php

/*

$Id: checkout_confirmation.php,v 1.139 2003/06/11 17:34:53 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 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(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT));

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

}

 

// 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'));

}

}

 

// 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'));

}

 

if (!tep_session_is_registered('payment')) tep_session_register('payment');

if (isset($HTTP_POST_VARS['payment'])) $payment = $HTTP_POST_VARS['payment'];

 

if (!tep_session_is_registered('comments')) tep_session_register('comments');

if (tep_not_null($HTTP_POST_VARS['comments'])) {

$comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);

}

 

// load the selected payment module

require(DIR_WS_CLASSES . 'payment.php');

$payment_modules = new payment($payment);

 

require(DIR_WS_CLASSES . 'order.php');

$order = new order;

 

$payment_modules->update_status();

 

if ( ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) {

tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL'));

}

 

if (is_array($payment_modules->modules)) {

$payment_modules->pre_confirmation_check();

}

 

// load the selected shipping module

require(DIR_WS_CLASSES . 'shipping.php');

$shipping_modules = new shipping($shipping);

 

require(DIR_WS_CLASSES . 'order_total.php');

$order_total_modules = new order_total;

 

// Stock Check

$any_out_of_stock = false;

if (STOCK_CHECK == 'true') {

for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {

if (tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty'])) {

$any_out_of_stock = true;

}

}

// Out of Stock

if ( (STOCK_ALLOW_CHECKOUT != 'true') && ($any_out_of_stock == true) ) {

tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));

}

}

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_CONFIRMATION);

 

$breadcrumb->add(NAvb script:openTarget(this); return true;"

action=/lpc/servlet/lppay method=post>

<font size="3" face="arial">

<INPUT type=hidden value=displayit

name=displayReceipt>

<INPUT type=hidden value=pr name=vlptype>

<INPUT type=hidden

value=993652 name=storename>

<INPUT type=hidden name=pagetype>

<INPUT type=hidden

name=tax>

<INPUT type=hidden name=vattax>

<INPUT type=hidden name=shipping>

<INPUT

type=hidden value=39.95 name=chargetotal>

<INPUT type=hidden

value=172.30.184.54-1093302309F-8CAEB0-150E253 name=r_ordernum>

<INPUT

type=hidden value="02/03/06 07:01:55 PM" name=r_time>

<INPUT type=hidden

name=r_code>

<INPUT type=hidden value=FRAUD name=r_approved>

<INPUT type=hidden

value="(Visa) ....8566" name=cardnumber>

<INPUT type=hidden value=01

name=expmonth>

<INPUT type=hidden value=2008 name=expyear>

<INPUT type=hidden

name=checknumber>

<INPUT type=hidden name=accountnumber>

<INPUT type=hidden

name=transitrouting>

<INPUT type=hidden value=39.95 name=subtotal>

<INPUT

type=hidden name=swipe>

<INPUT type=hidden value="Jim OFallin" name=bname>

<INPUT

type=hidden name=addrnum>

<INPUT type=hidden value="4409 Pomona"

name=baddr1>

<INPUT type=hidden name=baddr2>

<INPUT type=hidden value="La Mesa"

name=bcity>

<INPUT type=hidden value=California name=bstate>

<INPUT type=hidden

value=91941 name=bzip>

<INPUT type=hidden value="Jim OFallin" name=sname>

<INPUT

type=hidden value="4409 Pomona" name=saddr1>

<INPUT type=hidden

name=saddr2>

<INPUT type=hidden value="La Mesa" name=scity>

<INPUT type=hidden

value=California name=sstate>

<INPUT type=hidden value=91941 name=szip>

<INPUT

type=hidden value=1001 name=ponumber>

<INPUT type=hidden name=txnorg>

<INPUT

type=hidden value="02/03/06 07:01:55 PM" name=r_time>

<INPUT class=button type=submit value="Show Receipt">

</font>

</FORM></TD>

<FORM action=https://www.fourseasonscandy.com/catalog/checkout_process.php

method=post>

<font size="3" face="arial">

<INPUT type=hidden value=FRAUD name=status>

<INPUT type=hidden

value="Duplicate transaction." name=failReason>

<INPUT type=hidden

value=172.30.184.54-1093302309F-8CAEB0-150E253 name=OID>

<INPUT type=hidden

value="02/03/06 07:01:55 PM" name=ttime>

<INPUT type=hidden

value="FOUR SEASONS CANDY" name=merchant>

<INPUT type=hidden value=(619)583-0160

name=merchantphone>

<INPUT type=hidden [email protected]

name=merchantemail>

<INPUT type=hidden value=eci name=txnorg>

<INPUT type=hidden

value=39.95 name=chargetotal>

<INPUT type=hidden value="(Visa) ....8566"

name=cardnumber>

<INPUT type=hidden value=01 name=expmonth>

<INPUT type=hidden

value=2008 name=expyear>

<INPUT type=hidden value="Jim OFallin" name=bname>

<INPUT

type=hidden value="4409 Pomona" name=baddr1>

<INPUT type=hidden value=91941

name=bzip>

<INPUT type=hidden value=US name=bcountry>

<INPUT type=hidden

value=619-750-1614 name=phone>

<INPUT type=hidden [email protected]

name=email>

<INPUT type=hidden value="Jim OFallin" name=sname>

<INPUT type=hidden

value="4409 Pomona" name=saddr1>

<INPUT type=hidden value="La Mesa"

name=scity>

<INPUT type=hidden value=California name=sstate>

<INPUT type=hidden

value=91941 name=szip>

<INPUT type=hidden value=US name=scountry>

<INPUT

type=hidden value=2 name=userid>

<INPUT type=hidden value=California

name=bstate>

<INPUT type=hidden value=172.30.184.54-1093302309F-8CAEB0-150E253

name=oid>

<INPUT type=hidden name=cvmnotpres>

<INPUT type=hidden value=1001

name=ponumber>

<INPUT type=hidden value=Visa name=cc_type>

<INPUT type=hidden

value=91941 name=bzip>

<INPUT type=hidden value=68.8.135.141

name=customer_ip>

<INPUT type=hidden value=f8d04beafa08949dc5d2c7ff11566034

name=osCsid>

<INPUT type=hidden value=live name=txnmode>

<INPUT type=hidden

value=11 name=y>

<INPUT type=hidden value=87 name=x>

<INPUT type=hidden

value="La Mesa" name=bcity>

</font><font face="arial">

<TD vAlign=top><font size="3">

<INPUT class=button onclick=history.go(-1); type=button value=Back>

</font></TD>

<TD vAlign=top><font size="3">

<INPUT class=button type=submit value=Continue name=Checkout2>

</font></TD>

</font>

</FORM>

</TR>

</TBODY>

</TABLE>

</CENTER>

</H3>

<BR>

<p> </p>

</body>

</html>

 

 

________________________________________________________________________________

________

 

 

I suspect that this is a link point problem but I have yet to hear back from them after 3 emails in a week, but I want someone to confirm this so when they say it's an OSCommerce problem like both them and our web host always tell me until I have to rub it in their faces that OSCommerce has nothing to do with it and have to darn near have a software engineer send them an email before they will take responsibility for their screw up's So having one or more other's to confirm it help's me to have no doubts in who's end of the web needs fixing. See I won't back down or allow these guys to pass the buck, no way no how as long as I am sure it's nothing on my end that's causing problems. Heck last time we couldn't get to our checkout_paymernt.php page for 10 days because the web host said they were upgrading their system, FOR 10 DAYS? I have my schooling in networks and servers and I have never heard of it taking 10 days to transfer all the files from one server to another. and they should have done a Ghost from their old servers to their new ones, that way they could have taken us offline fo maybe 24 hours tops and it done. 10 days what a bunch of Bull Bubbles!

That's why we hard working business people who built our own websites to save money so that we might make money need to stick together and back each other when we get the, it's a OSCommerce problem to try to get rid of you, not this Irish-Italian I just contact the management after the second brush off, and things get done!

 

 

 

Thanks Jim O

FSC

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...