Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Sign in to follow this  

Callback Worldpay

Recommended Posts

Have got round the STS Templates Worldpay issue by switching to normal mode when wpcallback.php callback returns, have posted my solution at:-




The 1062 - Duplicate entry etc, etc, issue was resolved by setting my browser to accept all cookies from the clients site!





Hi Seeker, Graham,

I think you sent me your futurepay mod with email? :P

I also have a callback problem.... >_<

its like https://secure.mysite.com/login.php?osCsid=blabla

I also use sts but I fixed this with your:



if (strpos($scriptname, "wpcallback") !== false) {

$display_normal_output = 1;

$display_template_output = 0;



Iam no cookie specialist, but my seetings in admin are as folow:

Session Directory /tmp 

Force Cookie Use False 

Check SSL Session ID True 

Check User Agent True 

Check IP Address True 

Prevent Spider Sessions True 

Recreate Session True



And my worldpay admin settings:


Enable WorldPay Module



Worldpay Installation ID

xxxxx (my client id)





Use Pre-Authorisation?






What is Pre-Authorisation for. I read in this trhread i have to set this to true?


Share this post

Link to post
Share on other sites

This sounds a silly answer! But It works for me.

I have had the same problem as discribed in this thread. Everything is working except that the orders were not being displayed in the orders database.

I set "Set Order Status" in the admin (of oscommerce) for the world pay module to "Processing" and it now works like a dream!

The setting for ""Set Order Status""

The setting was "default" and that was not working.


Hope this helps


All the best



Share this post

Link to post
Share on other sites

Hi all,


I've tried seeker's suggestion with the if statement, however this didn't seem to work, however, you can control whether or not STS shows the template through the URL:




This gets rid of the blank page problem, however all responses now come back as "Request was Cancelled!" - so I'm not sure whtehr this is a fix or not as the system still doesn't update the orders.


I also just duplicating the STS application_bottom.php to the above settings and change the include in the wpcallback.php file to the duplicate, but this had the same effect of the order comming up as "Cancelled" (not Completed/Denied).


Anyway, anybody got a solution to actually get the callback to not be cancelled? or is this STS fault as well?





Share this post

Link to post
Share on other sites

Just had a similar problem with a shop not using STS and the following code changes around line 118 in the Worldpay module solved it for me:


$callback_url = tep_href_link(FILENAME_WPCALLBACK, '', (ENABLE_SSL ? 'SSL' : 'NONSSL'), false);

$protocol = (ENABLE_SSL ? 'https://' : 'http://');

$worldpay_callback = explode($protocol, $callback_url);

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this