Re: WorldPay Module for ZenCartv1.3x
wpcallback.html is what the seo mod turns the file into. (this is what the callback is told to contact when wp is set to http://<wpdisplay item="MC_callback">
Even when the SEO mod is turned off the problem still exists.
Server config would not be the issue as I have been runnign OSC with the worldpay mod for over 2 years without a problem. my osc also had the same SEO mod installed.
even if i change the http: to https: for
http://<wpdisplay item="MC_callback">
and direct url its still doing it.
Could it just be a redirect issue? as the SEO mod redirects all calls for PHP to the equivelent HTML file ?
Is there a way to drop the callback file into the root (like in OSC )as a php file? so it can be directly called
here is server info for you
HTTP Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.8a PHP-CGI/0.1b
PHP ver is 4.4.4
MySQL 4.1.21-standard
Re: WorldPay Module for ZenCartv1.3x
dasonix,
Have you tried completely removing SEO URLs? I would advise getting things working without the SEO mod installed before going any further.
I'm not familiar with the SEO mod so I cannot comment on how it does or should work. I believe that there are other contributions which do not work with this mod - e.g. Admin Profiles.
MC_callback is equivalent to the following URL
Code:
www.mydomain.com/index.php?main_page=wpcallback&zenid=dirtylongalphanumeric
Two things to note:
1. Although the ZenCart WorldPay module is based on the OSC module it differs in the way it responds to the callback response from WorldPay. The original OSC module returned the customer to a 'Checkout Success' page requiring the customer either to click on a link or not close the browser window for at least 10 seconds to allow an auto re-direct to kick in and for the order creation process to be completed. If the customer on seeing the 'Success' message simply closed the browser then the order would not be created and, as far as the merchant is concerned, lost even though WorldPay had debited the customer's card.
The ZenCart WorldPay module does the required processing to complete the order before displaying the 'Success' message which eliminates this problem. Because there is some code involved the callback URL cannot be to a .html file.
2. Although ZenCart itself is derived from OSC the two projects diverged some years ago. I cannot speak for OSC but ZenCart has developed considerably since then and I would be surprised if there are not by now some fairly fundamental differences between the two sets of code which may well render any comparison on how a module might work in either pretty meaningless.
I know that some have had problems with the WorldPay module where their server is set up with any sort of re-direct arrangement hence my comment about there perhaps being a server issue. I understand WorldPay treat re-directs with suspicion and refuses to complete the callback. This may be also an issue with the SEO URLs mod.
If, after you have removed the SEO mod, you are still getting errors please post details here and I will try to assist you as best I can.
Regards,
Alan
Re: WorldPay Module for ZenCartv1.3x
I have now totaly removed the SEO mod (even the .htaccess)
Have set the WP cpanel back to recomended default as above(exept changed the http to https as its a secure server), and yet everything it sends the callback to the timeout page?
this is where it is calling back to with all defaults in place
https://www.bunnybasics.net/index.ph...b6aba78cae2e5:
NOT OK, recevied HTTP status: 302
Server Reference: mggaeq4a:callbackFailureEmail-21117016:MerchReq-231
this is what our server is responding to the call back
HTTP/1.1 302
Date: Thu, 12 Apr 2007 21:41:35 GMT
Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2
mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.8a
PHP-CGI/0.1b
X-Powered-By: PHP/4.4.4
Set-Cookie: cookie_test=please_accept_for_session; expires=Sat, 12 May 2007 21:41:35
GMT; path=/; domain=www.bunnybasics.net
Location: https://www.bunnybasics.net/index.ph..._page=time_out
Connection: close
Content-Type: text/html; charset=iso-8859-1
could this be the problem??????? just a hunch
snip from WP request to our server: MC_callback=www.bunnybasics.net%2Findex.php%3Fmain_page%3Dwpcallback%26zenid %3Db8800ed16c5bc42cb2091f3276c7a187
actual string sent in URL to server
zenid=3Db8800ed16c5bc42cb2091f3276c7a187
could it be the way the string is formated?
the actual server responce for this transaction is as above
please help as its driveing me nuts
Re: WorldPay Module for ZenCartv1.3x
dasonix,
http 302 error means that the server thinks your URL has been temporarily re-directed to another URL. Any reason why that might be?
Have you tried
http://<wpdisplay item="MC_callback">
rather than
https://<wpdisplay item="MC_callback">
From memory I think you may have to make a change in the code to use https:// but I may be wrong - and it may depend on how your secure server is set up.
Let me know if this makes any difference.
Regards,
Alan
Re: WorldPay Module for ZenCartv1.3x
dasonix,
I've just checked and if you set the callback URL to:
Code:
https://<wpdisplay item="MC_callback">
you must also make a change in
includes/modules/payment.worldpay.php at line 129
from:
Code:
$worldpay_callback = explode('http://', $callback_url);
to:
Code:
$worldpay_callback = explode('https://', $callback_url);
Hope this helps,
Alan
Re: WorldPay Module for ZenCartv1.3x
I will give it a go and get back to you ASAP, thank you
Re: WorldPay Module for ZenCartv1.3x
nope still wont work :(
Ill keep trying though, Ill take off HTTPS settigns now and try it as non secure and see how I get on
Re: WorldPay Module for ZenCartv1.3x
OK latest update, I disabled SSL on site and restored all WP settings back to default, tested everything once again and still the same, all hangs on the WP conf page and callback error.
any ideas ppl
Re: WorldPay Module for ZenCartv1.3x
Dasonix,
I'm not sure you have the same problem - you seem to be running PHP 4.4 which to my understanding should not be an issue but have a look at this post:
http://www.zen-cart.com/forum/showpo...4&postcount=32
and at this post as to why this may be an issue:
http://www.zen-cart.com/forum/showpo...0&postcount=41
I really need to get round to updating the download files to take care of a couple of known issues that keep arising here. This one I'm not sure how to handle since the solution is dependent upon the version of PHP installed. I think I should probably go for the fix that works on newer versions and include a note for those with versions pre 4.1.
If this doesn't work could you post all your settings in both the Zencart admin and the WorldPay CP. Also a complete copy of the callback failure email from Worldpay.
Regards,
Alan
Re: WorldPay Module for ZenCartv1.3x
Ill get back to you ASAP with the results of these fixes.
and see where we can go from there.