Page 1 of 1
WorldPay callback in 1.5.1.2
Posted: Tue Oct 11, 2011 2:18 am
by evanmorgan
Hi,
I am having problems with Worldpay in opencart 1.5.
The callback doesn't seem to be working. The test transaction goes through but I don't end up back at the site and it doesn't remove the products from cart or show orders in admin.
I have searched on this topic but can only find unanswered queries or 1.4x queries.
Anyone got any ideas.
The website URL is
http://www.ispytoys.co.uk/store/
Cheers
Evan
Re: WorldPay callback in 1.5.1.2
Posted: Mon Oct 17, 2011 11:08 pm
by evanmorgan
Hi, this is still proving a problem and all parties involved are claiming it not to be their problem.
Anyone have any ideas?
Re: WorldPay callback in 1.5.1.2
Posted: Mon Oct 17, 2011 11:55 pm
by Qphoria
Add the following
1. EDIT: catalog/controller/payment/worldpay.php
2. FIND:
3. AFTER, ADD:
Code: Select all
file_put_contents(DIR_LOGS . 'worldpay_debug.txt', print_r($_REQUEST, 1));
Try to checkout again and this time when it comes back, it should generate a log file in the system/logs directory with all the data being passed back.
PM that data to me.
Re: WorldPay callback in 1.5.1.2
Posted: Sun Nov 06, 2011 4:52 am
by yuankun
I have the same problem with evanmorgan, and I had pm you my log, please help me as well.
Re: WorldPay callback in 1.5.1.2
Posted: Mon Nov 07, 2011 2:00 pm
by Qphoria
The issue turned out to be that evan had the wrong callback password in his settings. I will be adding code to the extension to alert this error properly. But that is likely your issue too. You can see in the message you PM'd me what the callbackPW they expect is. If it doesn't match the one set in the admin area exactly, it will do what you are seeing.
Re: WorldPay callback in 1.5.1.2
Posted: Wed Nov 09, 2011 11:24 pm
by Qphoria
I've updated svn now with a change.
Now if the callbackPW doesn't match, but the payment was successful, the order is placed into the store default order status id (usually pending) and noted that it needs to be manually verified
If the callbackPW matches, then it updates to the order status set in the worldpay admin area.
Re: WorldPay callback in 1.5.1.2
Posted: Thu Nov 10, 2011 4:25 am
by yuankun
thanks for reply me, but I checked the "log file", the callbackPW is empty, how does it happened? where can I tweak it to make it same as I setup in backend of Opencart?
and where can I got the "updated svn(sorry, what's this?)"?
please advise me.
Re: WorldPay callback in 1.5.1.2
Posted: Tue Nov 29, 2011 2:44 am
by Qphoria
you need to set the callbackpw in your worldpay account
Then set the same password in your worldpay admin area in opencart.
When Worldpay sends back a notification message, it checks that the 2 passwords match. If they don't match, then no good.
Updated SVN means that if you know how to use SVN, you can get the updated version from the source code repository on
http://code.google.com/p/opencart
Otherwise you will have to wait for the next version of opencart to be released