Post by AidanCKY » Thu Feb 08, 2018 12:00 am

Hello everyone

Have been trying for ages to get Worldpay working on my installation. First I tried it on a site with a few extensions - It would allow me to enter the Service Key, Client Key etc. But it would not let me save it as "Enabled".

When I set to Enabled and press save, it says " Success: You have modified Worldpay account details!"
But the extension stays disabled.

I assumed it was incompatibility, so I set up a fresh install of Opencart 3.0.2.0, and tried setting up the worldpay extension again. Same problem.

What can I do? I've contacted Worldpay who've confirmed everything is as it should be on their end, and that i'm doing it right at my end.
Worldpay don't supply extensions, it comes with Opencart already ready to install.

Please help!

Newbie

Posts

Joined
Wed Feb 07, 2018 8:59 am

Post by straightlight » Thu Feb 08, 2018 7:16 am

When I set to Enabled and press save, it says " Success: You have modified Worldpay account details!"
But the extension stays disabled.
In admin/controller/extension/payment/worldpay.php file,

find:

Code: Select all

$this->session->data['success'] = $this->language->get('text_success');
add below:

Code: Select all

echo "<pre />\n";
print_r($this->request->post);
echo "</pre>\n";

exit;
Save changes. Go back to your admin WorldPay form and re-enable the extension. Hit Save and notice the debug paragraph that will be shown. Post it on your next reply (except your API key).

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Luckyfox » Fri Mar 09, 2018 1:00 am

Hi,

I have the same error, has anyone found a fix for this yet??

Regards,

Nigel

Newbie

Posts

Joined
Thu Apr 12, 2012 3:02 am

Post by straightlight » Fri Mar 09, 2018 8:08 pm

Luckyfox wrote:
Fri Mar 09, 2018 1:00 am
Hi,

I have the same error, has anyone found a fix for this yet??

Regards,

Nigel
The troubleshooting solution has been posted ... right on the above and still the same question remains.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Harry_Ray » Thu Jul 12, 2018 5:33 pm

Hey guys,

I'm having the same issue. I've followed the steps that straightlight has asked for, please see my debug paragraph below (without my Service or Client keys):

Array
(
[payment_worldpay_service_key] => xxxxxxxxxx
[payment_worldpay_client_key] => xxxxxxxxxx
[payment_worldpay_total] => 1
[worldpay_card] => 0
[worldpay_secret_token] =>
[worldpay_order_status_id] => 7
[worldpay_geo_zone_id] => 0
[worldpay_debug] => 1
[worldpay_status] => 1
[worldpay_sort_order] =>
[worldpay_entry_success_status_id] => 7
[worldpay_entry_failed_status_id] => 7
[worldpay_entry_settled_status_id] => 7
[worldpay_refunded_status_id] => 7
[worldpay_entry_partially_refunded_status_id] => 7
[worldpay_entry_charged_back_status_id] => 7
[worldpay_entry_information_requested_status_id] => 7
[worldpay_entry_information_supplied_status_id] => 7
[worldpay_entry_chargeback_reversed_status_id] => 7
)

Is anybody able to help?

Newbie

Posts

Joined
Thu May 31, 2018 5:31 pm

Post by kestas » Fri Jul 13, 2018 2:27 pm

yes seems there are the bug. in your file admin/controller/extension/payment/worldpay.php
find:

Code: Select all

if (isset($this->request->post['worldpay_status'])) {
			$data['worldpay_status'] = $this->request->post['worldpay_status'];
		} else {
			$data['worldpay_status'] = $this->config->get('worldpay_status');
		}
and replase with:

Code: Select all

if (isset($this->request->post['payment_worldpay_status'])) {
			$data['payment_worldpay_status'] = $this->request->post['payment_worldpay_status'];
		} else {
			$data['payment_worldpay_status'] = $this->config->get('payment_worldpay_status');
		}
More precisely, there are more errors there. I later see the files that should solve the problem.
Cheers

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by kestas » Fri Jul 13, 2018 3:10 pm

I have rechecked Worldpay extension and find more errors which can cause problems. You can upload it over via ftp.
Before you upload it, make backup of old your files of the Worldpay extension in case if something goes wrong.
Worldpay extension attached.
I can't check it all functionality because I don't have account on Worldpay, but now this payment option can be enabled.
Cheers

Attachments

Last edited by kestas on Sat Nov 03, 2018 3:54 pm, edited 1 time in total.

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by Harry_Ray » Tue Jul 17, 2018 3:39 pm

Hey kestas,

Thanks for that! I've installed the updated WorldPay extension that you offered and it seems to be working - the extension is active and I can see the payment screen. However, in the back end, I still can't pick the Order Statuses - they all stay as 'cancelled' no matter what I do, apart from 'Refunded' which is set to 'refunded'.

Any ideas?

Newbie

Posts

Joined
Thu May 31, 2018 5:31 pm

Post by kestas » Wed Jul 18, 2018 2:30 pm

Harry_Ray wrote:
Tue Jul 17, 2018 3:39 pm
Hey kestas,

Thanks for that! I've installed the updated WorldPay extension that you offered and it seems to be working - the extension is active and I can see the payment screen. However, in the back end, I still can't pick the Order Statuses - they all stay as 'cancelled' no matter what I do, apart from 'Refunded' which is set to 'refunded'.

Any ideas?
Hi,

I have checked again and I able to change order statuses. Try upload again all files.

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by Harry_Ray » Wed Jul 18, 2018 3:57 pm

Hey kestas,

I've just re-downloaded the updated WorldPay extension you developed, and uploaded all the files again, but I still can't change the order statuses, I'm afraid!

Newbie

Posts

Joined
Thu May 31, 2018 5:31 pm

Post by kestas » Wed Jul 18, 2018 5:45 pm

Harry_Ray wrote:
Wed Jul 18, 2018 3:57 pm
Hey kestas,

I've just re-downloaded the updated WorldPay extension you developed, and uploaded all the files again, but I still can't change the order statuses, I'm afraid!
Can you debug again like @straightlight explained? and post your result.

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by Harry_Ray » Wed Jul 18, 2018 10:51 pm

Hey kestas! Really appreciate the help so far.

Sure thing, see below:

Code: Select all

Array
(
    [payment_worldpay_service_key] => 
    [payment_worldpay_client_key] => 
    [payment_worldpay_total] => 1
    [payment_worldpay_card] => 0
    [payment_worldpay_secret_token] => 
    [payment_worldpay_order_status_id] => 5
    [payment_worldpay_geo_zone_id] => 0
    [payment_worldpay_debug] => 1
    [payment_worldpay_status] => 1
    [payment_worldpay_sort_order] => 
    [payment_worldpay_entry_success_status_id] => 5
    [payment_worldpay_entry_failed_status_id] => 7
    [payment_worldpay_entry_settled_status_id] => 7
    [payment_worldpay_refunded_status_id] => 11
    [payment_worldpay_entry_partially_refunded_status_id] => 7
    [payment_worldpay_entry_charged_back_status_id] => 7
    [payment_worldpay_entry_information_requested_status_id] => 7
    [payment_worldpay_entry_information_supplied_status_id] => 7
    [payment_worldpay_entry_chargeback_reversed_status_id] => 7
)
Last edited by Harry_Ray on Fri Jul 27, 2018 11:32 pm, edited 1 time in total.

Newbie

Posts

Joined
Thu May 31, 2018 5:31 pm

Post by kestas » Wed Jul 18, 2018 11:47 pm

Please edit your post and hide your wrldpay credentials

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by straightlight » Thu Jul 19, 2018 12:13 am

[payment_worldpay_refunded_status_id] => 11
[payment_worldpay_entry_success_status_id] => 5
[payment_worldpay_entry_failed_status_id] => 7
[payment_worldpay_entry_settled_status_id] => 7
[payment_worldpay_entry_partially_refunded_status_id] => 7
[payment_worldpay_entry_charged_back_status_id] => 7
[payment_worldpay_entry_information_requested_status_id] => 7
[payment_worldpay_entry_information_supplied_status_id] => 7
[payment_worldpay_entry_chargeback_reversed_status_id] => 7
Those key names in the array do not exists out of the box of worldpay. You are either using an extension you did improperly followed my instructions from the bug reports section of the forum if using OC v3.0.2.0. As for the payment_world_refunded_status_id … status 11 ? Where is this status ID originating from?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by kestas » Thu Jul 19, 2018 2:08 pm

Harry_Ray wrote:
Wed Jul 18, 2018 10:51 pm
Hey kestas! Really appreciate the help so far.

Sure thing, see below:

Array
(
[payment_worldpay_service_key] =>xxxxxxxxxxxxxxx
[payment_worldpay_client_key] => xxxxxxxxxxxxxxx
[payment_worldpay_total] => 1
[payment_worldpay_card] => 0
[payment_worldpay_secret_token] => c1895f4cee636ac332b1d5ab204dd547cbadf3e4
[payment_worldpay_order_status_id] => 5
[payment_worldpay_geo_zone_id] => 0
[payment_worldpay_debug] => 1
[payment_worldpay_status] => 1
[payment_worldpay_sort_order] =>
[payment_worldpay_entry_success_status_id] => 5
[payment_worldpay_entry_failed_status_id] => 7
[payment_worldpay_entry_settled_status_id] => 7
[payment_worldpay_refunded_status_id] => 11
[payment_worldpay_entry_partially_refunded_status_id] => 7
[payment_worldpay_entry_charged_back_status_id] => 7
[payment_worldpay_entry_information_requested_status_id] => 7
[payment_worldpay_entry_information_supplied_status_id] => 7
[payment_worldpay_entry_chargeback_reversed_status_id] => 7
)
Where from in key names word:
_entry
In fixed module this keys does not exist. Maybe you do not replaced your all old files with new one, or maybe use some another worldpay module. By the way, in OC 3.0.x when you make some changes of your shop you should clear all cache in your admin main dashboard blue gear icon and refresh modifications. After all you should clear all cache and cookies of your browser...

If you facing some difficulties for upgrading and debugging your shop you can place request for the help in commercial forum.


Cheers

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by straightlight » Thu Jul 19, 2018 6:05 pm

I just … mentioned that on my previous post … redundancy.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Harry_Ray » Fri Jul 27, 2018 11:33 pm

So what do you guys recommend, how do I get this working?

Newbie

Posts

Joined
Thu May 31, 2018 5:31 pm

Post by laura shipley » Sun Sep 02, 2018 6:57 pm

I have uploaded the debug files and still can not get the extension to enable. Don't know what I'm doing wrong. Any further ideas on how to resolve this greatly appreciated. Thanks

Newbie

Posts

Joined
Sun Sep 02, 2018 6:50 pm

Post by kestas » Mon Sep 03, 2018 3:25 pm

If you have downloaded fixed module which was posted above and if your knowledge does not allow you to properly install Worldpay, then you need to ask for help in a commercial forum, or ask some developer for paid help directly.

Cheers

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by Marzy1357 » Mon Oct 22, 2018 7:01 pm

Hi, I was reading through the forum as well as github where I found a fix by straightlight then I found this probably another edit by kestas, tried them both, but I still cannot get this extention to work. Someone mentioned that it was fixed in Alpha, but I actually have live store thats fully running, and cannot install alpha there yet, did someone managed to fix worldpay on 2.0.3.0 and could assist me a bit? At the moment I can only take PayPal payments, and really want to get Worldpay going as I just received my live api keys. Thanks p.s kestas are you lithuanian?

Newbie

Posts

Joined
Sat Jan 16, 2016 6:09 pm
Who is online

Users browsing this forum: No registered users and 173 guests