Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Worldpay Callback


yatesy87

Recommended Posts

Hi

 

Im having massive problems with getting the callback function to work correctly for worldpay.

 

the callback url it tries to send purchasers to is: https://mystoreaddress.com/FILENAME_WPCALLB...oscid=etcetcetc

 

As you can see my problem is that FILENAME_WPCALLBACK should be the page address wpcallback.php for the order to be complete and inserted into the oscommer database.

 

How do I get it to correctly point to this page?

 

Thanks

Link to comment
Share on other sites

  • 6 months later...
Hi

 

Im having massive problems with getting the callback function to work correctly for worldpay.

 

the callback url it tries to send purchasers to is: https://mystoreaddress.com/FILENAME_WPCALLB...oscid=etcetcetc

 

As you can see my problem is that FILENAME_WPCALLBACK should be the page address wpcallback.php for the order to be complete and inserted into the oscommer database.

 

How do I get it to correctly point to this page?

 

Thanks

I have exactly the same problem - did you ever receive a reply to your query or did it come to you in a blinding flash!!:)

 

Flip

Link to comment
Share on other sites

  • 3 weeks later...

Hello Guys

 

I had the same problem copied all the code from the oscommerce contribution but there was no order showing. Then made this change to the below file and great it works. Its basically the call back has this strange url ---->

 

http://www.xxx.com/shop/wpcallback.php&language=en

 

If you try replacing xxx with your site you will see that it doesn't work. But changing it to:

 

http://www.xxx.com/shop/wpcallback.php

 

Makes it work and you then see the confirmation page.

 

Here is the program code for the php hope this blesses peoples lives. Try testing in Test mode:

 

 

How to set up Test Mode:

 

1. Log onto your site, and go to the Admin section

2. Go to the admin section and activate Worldpay payment type, by clicking on the red button

3. Enter your Worldpay ID and the mode (100=test credit card is authorised, 101=test credit card is not authorised and 0=live) Test using mode 100 or 101 first.

4. If you use Pre-Authorisation, and wish to use it select True, followed by E to pre-autorise all transactions.

 

----------------------- SOLUTION --------------------------------------------

 

Error - callback fails

 

You need to edit the file:

catalog\includes\modules\payment\worldpay.php

 

Change Line 138

 

FROM:

tep_draw_hidden_field('MC_callback', $worldpay_callback[1] . '?language=' . $language_code) .

TO:

tep_draw_hidden_field('MC_callback', $worldpay_callback[1] ) .

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...