Post by evanmorgan » Tue Oct 11, 2011 2:18 am

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

New member

Posts

Joined
Sun Jul 03, 2011 10:42 pm

Post by evanmorgan » Mon Oct 17, 2011 11:08 pm

Hi, this is still proving a problem and all parties involved are claiming it not to be their problem.

Anyone have any ideas?

New member

Posts

Joined
Sun Jul 03, 2011 10:42 pm

Post by Qphoria » Mon Oct 17, 2011 11:55 pm

Add the following

1. EDIT: catalog/controller/payment/worldpay.php

2. FIND:

Code: Select all

public function callback() {
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.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by yuankun » Sun Nov 06, 2011 4:52 am

I have the same problem with evanmorgan, and I had pm you my log, please help me as well.

Newbie

Posts

Joined
Fri Nov 04, 2011 12:22 am

Post by Qphoria » Mon Nov 07, 2011 2:00 pm

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.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Qphoria » Wed Nov 09, 2011 11:24 pm

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.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by yuankun » Thu Nov 10, 2011 4:25 am

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.

Newbie

Posts

Joined
Fri Nov 04, 2011 12:22 am

Post by Qphoria » Tue Nov 29, 2011 2:44 am

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 9 guests