Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Callback Worldpay


Guest

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:-

 

http://www.oscommerce.com/forums/index.php?sho...ic=55504&st=190

 

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

 

Cheers

Graham

 

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:

 

CODE 

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

True

 

Worldpay Installation ID

xxxxx (my client id)

 

Mode

100

 

Use Pre-Authorisation?

False

 

Pre-Auth

A

 

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

Keesjan

Link to comment
Share on other sites

  • 2 months later...

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

Steve

:)

Link to comment
Share on other sites

  • 1 year later...

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:

 

http://www.mydomain.com/wpcallback.php?sts...mp;sts_normal=1

 

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?

 

Cheers,

 

EF

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...