Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

WorldPay Callback


Guest

Recommended Posts

I am guessing that this is a pretty easy one to answer but I'm a little lost.

 

I am using Worldpay 4.0 V1.0 and all works fine exept the callback. I am very new to osCommerce and WP but the concept I do understand. The problem I have is the URL to enter into the WP admin screen. I have followed the instructions in the install.txt file that appear to tell you to place the wpcallback.php file in the root. In the package however the file is located in /catalog. If placed in the root I get the following error:-

 

Warning: main(includes/application_top.php) [function.main]: failed to create stream: No such file or directory in /home/www/deignerc/wpcallback.php on line 15

 

Fatal error: main() [function.main]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/local/lib/php') in /home/www/deignerc/wpcallback.php on line 15

 

 

I assume this is because application_top.php is not in the root.

 

I have tried putting wpcallback.php into the /catalog folder and into the /catalog/includes directory but although the error msg is gone I don't get a callback page?

Link to comment
Share on other sites

Just to clarify the above question.

 

I am using tep_snapshot-20030208.zip

 

The WorldPay module is :-

 

Worldpay V4.0 - Version 1.3.zip

 

Hope that makes the problem clearer.

Link to comment
Share on other sites

I have followed the instructions in the install.txt file that appear to tell you to place the wpcallback.php file in the root.

 

If I read you right, you are putting the file in the wrong place. In this case, 'root' means the same place as your default.php (or index.php) file in the catalog directory (if you have one). The error must be because this file tries to load application_top but cannot due to it being in the wrong directory.

 

Normally, you would not have a catalog directory unless you are using a launch page.

Ian-san

Flawlessnet

Link to comment
Share on other sites

Thanks for the reply.

 

If I understnd you correctly then, the wpcallback.php file should be in /catalog/wpcallback.php and the URL entered in the WorldPay admin screen should be www.mydomain.com/catalog/wpcallback.php

 

I am also curious about your comments on not having a catalog directory?

 

I followed the install instructions at http://guide.oscdox.com/ which I was under the impression instructed you to create a catalog directory when doing the install

Link to comment
Share on other sites

If you use a catalog directory you either need to show your url as being:

 

www.yourdomain.com/catalog/

 

or use a 'click here to enter' type launch page at:

 

www.yourdomain.com

 

or use a redirect that search engines hate.

 

So doing away with the catalog directory and having your default.php (or index.php) file at the highest level possible is clearly the best thing to do - I really dont know why anyone would recommend anything different? osdox is very good - but extra to the project - so I guess they just went for simplicity.

 

You can also place the admin directory as a sub-directory of your domain with no problem if you want - it just needs to be within your domain or you will get upload permission problems.

Ian-san

Flawlessnet

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...