Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Combining Callback page and checkout_process.php


icantbelieveit

Recommended Posts

Posted

Hi,

 

In order to make callback more reliable so that there won't be a chance where the payment is successful but checkout_process.php not being executed (eg, user redirect his browser to some other web site before the callback page is directed to checkout_process.php). Is there a way to combine the callback page and checkout_process.php?

 

I am using the worldpay module, and i think it applies to the rest of other payment modules too. I tried to make the callback file (in my case wpcallback.php) call checkout_process.php but i end up with strange results.

 

this code is inserted near the end of wpcallback.php

<?php

if(isset($transStatus) && $transStatus == "Y") {

// do a checkout process for sucessful transaction

require('checkout_process.php');

}

?>

 

Help anyone?

 

Thanks.

Archived

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

×
×
  • Create New...