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).

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


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.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


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. Just PM me... Extensions you can find here and 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

Custom OpenCart modules and solutions. Just PM me... Extensions you can find here and 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. Just PM me... Extensions you can find here and 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. Just PM me... Extensions you can find here and 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] => T_S_51b243f9-d981-4387-b41a-42d4b81ae64e
    [payment_worldpay_client_key] => T_C_b1570284-47a0-4bde-9808-5e7e4641dc73
    [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
)

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. Just PM me... Extensions you can find here and 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?

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


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. Just PM me... Extensions you can find here and 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.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

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

Users browsing this forum: No registered users and 8 guests