Zen Cart Logo
Forums / Addon Payment Modules / WorldPay Module version 3.0 - Support thread

WorldPay Module version 3.0 - Support thread

Views: 37,829

Results 21 to 40 of 117
18 Jul 2016, 10:02 AM
#21
bottyz avatar

bottyz

New Zenner

Join Date:
Mar 2010
Location:
Nottingham UK
Posts:
90
Plugin Contributions:
0

WorldPay Module version 3.0 - Support thread

Hi all,

Just as an update to get shipping tax to work with this module in v1.5.5a, you'll need to make an amendment similar to the one DrByte mentions in the following post (https://www.zen-cart.com/showthread.php?220280-Done-155b-Shipping-tax-not-added-in-order-confirmation-possible-bug&p=1312461#post1312461), in the includes/modules/wp_checkout_process.php file:

Lines 24-41:

// load selected payment module
require(DIR_WS_CLASSES . 'payment.php');
// $payment_modules = new payment($_SESSION['payment']);
$payment_modules = new payment('worldpay');
// load the selected shipping module
require(DIR_WS_CLASSES . 'shipping.php');
$shipping_modules = new shipping($_SESSION['shipping']);

require(DIR_WS_CLASSES . 'order.php');
$order = new order;

// prevent 0-entry orders from being generated/spoofed
if (sizeof($order->products) < 1) {
  zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
}

require(DIR_WS_CLASSES . 'order_total.php');
$order_total_modules = new order_total;

Change to:

// load selected payment module
require(DIR_WS_CLASSES . 'payment.php');
// $payment_modules = new payment($_SESSION['payment']);
$payment_modules = new payment('worldpay');

require(DIR_WS_CLASSES . 'order.php');
$order = new order;

// load the selected shipping module
require(DIR_WS_CLASSES . 'shipping.php');
$shipping_modules = new shipping($_SESSION['shipping']);

// prevent 0-entry orders from being generated/spoofed
if (sizeof($order->products) < 1) {
  zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
}

require(DIR_WS_CLASSES . 'order_total.php');
$order_total_modules = new order_total;

I hope this helps.

16 Aug 2016, 1:32 PM
#22
fozzyo avatar

fozzyo

New Zenner

Join Date:
Mar 2006
Location:
Wolverhampton, UK
Posts:
31
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

Is anyone else suffering with the callback timeout issue still? I'm trying to get this to work on a site and have failed miserably!! Each time I try a transaction the callback fails returning the following in the response data report:

Location: http://domain/store/index.php?main_page=time_out

I've tried this on the main site using ZC 1.5.1a, a clean installation with classic template 1.5.1a and a clean installation with classic template 1.5.5a all with fresh download of the Worldpay 3.0 module.

This has also been tested with ZC 1.5.5a with PHP 5.3.28, 5.4.45 and 5.5.38

And module reports - Diagnostic: Recreate Session Check Verified: Session's can be recreated by worldpay in this shop.

Thanks
Mat

26 Oct 2016, 8:43 PM
#23
michaeld avatar

michaeld

New Zenner

Join Date:
May 2006
Location:
UK
Posts:
28
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

In the WorldPay-ReadMe.html file in the WorldPay_3.0 > _docs folder, I cannot access any of the pages other than the 'Purpose' page in Google Chrome. However, it works fine in Firefox.

Has anyone else noticed this?

My first Zen Cart site: www.dotcomtoolsuk.com

17 Nov 2016, 10:15 AM
#24
spacemonkey avatar

spacemonkey

Zen Follower

Join Date:
Nov 2013
Location:
Dorset, UK
Posts:
124
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

Hi All.

I have this setup and all was fine in the test environment. I moved server and all appears to be fine with the store but now I can't get the callback to work which means you are left on the worldpay site after the transaction & obviously payment is collected successfully but nothing appears in zen cart.

Please help

Zen v1.54 & WP v3.0

Email message:
Error reported: Callback to https://######.com/index.php?main_page=wp_callback NOT OK, recevied HTTP status: 302

Response.txt
HTTP/1.1 302 Moved Temporarily
Date: Thu, 17 Nov 2016 09:46:23 GMT
Server: Apache
X-Powered-By: PHP/5.6.24
Set-Cookie: cookie_test=please_accept_for_session; expires=Sat, 17-Dec-2016 09:46:23 GMT; Max-Age=2592000; path=/; domain=#####.com
Location: https://#####.com/index.php?main_page=wp_callback_hacker_response
Strict-Transport-Security: max-age=0
Connection: close
Content-Type: text/html; charset=utf-8

Worldpay Control panel:

Attachment 16793

I have read much of the WP2 posts and all of this one but still not had much luck.

If you need more info just ask.

Thanks in advance for any help received.

29 Nov 2016, 12:07 PM
#25
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: WorldPay Module version 3.0 - Support thread

Hi I have the same problem. The callback feature doesn't work. Did this get resolved and do you have an answer?

Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk

29 Nov 2016, 12:22 PM
#26
spacemonkey avatar

spacemonkey

Zen Follower

Join Date:
Nov 2013
Location:
Dorset, UK
Posts:
124
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

No answer and not resolved. I have tried loads of troubleshooting and no answer as yet. Will be working it through again in the next couple of days and I will post if I get this done.

29 Nov 2016, 12:43 PM
#27
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: WorldPay Module version 3.0 - Support thread

I have managed to get this fixed.

Just follow the instructions here EXACT:

WorldPay Account Section.
Login to your WorldPay admin screen http://www.worldpay.com/us
In the WorldPay Control Panel screen click 'Configuration Options' for the installation i.d. Enter the Callback URL exactly as follows (including case):
https://<wpdisplay item="MC_callback">

If SSL is not enabled on your website the Callback URL should be:
http://<wpdisplay item="MC_callback">

Enter the Shopper Redirect URL: If you have SSL enabled USE... https://
Change Your-Web-site to your domain name.

https://www.Your-Web-Site.com/index.php?main_page=checkout_success
Enter the Shopper Redirect URL: If SSL is not enabled USE... http://
Change Your-Web-site to your domain name.

http://www.Your-Web-Site.com/index.php?main_page=checkout_success
Also in the Configuration Options set the following if not done already:

Payment Response enabled? - ensure this is ticked.
Enable Recurring Payment Response? - ensure this is ticked.
Enable the Shopper Response? - ensure this is ticked.
Suspension of Payment Response? - ensure this is NOT ticked (it automatically selects if callback fails).
Click 'Payment Response Password - enter your password. (and then again to validate, do not tick use default as it will reset password fields) Make this secure using numbers and letters. You only have to remember it long enough to enter it in your Zen Cart Worldpay module configuration.
MD5 secret for transactions - enter a pass phrase which can be up to 16 characters long and include spaces. (and then again to validate, do not tick use default as it will reset password fields).
Click on update installation (You don't have to contact WorldPay technical support anymore for MD5 as this is now done from Worldpay dashboard).
That's it you now have WorldPay Installed..

Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk

29 Nov 2016, 12:54 PM
#28
spacemonkey avatar

spacemonkey

Zen Follower

Join Date:
Nov 2013
Location:
Dorset, UK
Posts:
124
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

I will be working this again later so will let you know.

I'm reasonably confident the instructions were followed exactly and call back URL etc has be checked lots of times but I will be looking again.

Good luck with your store and I will post again later. 🙂

9 Dec 2016, 2:56 AM
#29
spacemonkey avatar

spacemonkey

Zen Follower

Join Date:
Nov 2013
Location:
Dorset, UK
Posts:
124
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

Nick1973:

I have managed to get this fixed.

Just follow the instructions here EXACT:

WorldPay Account Section.
Login to your WorldPay admin screen http://www.worldpay.com/us
In the WorldPay Control Panel screen click 'Configuration Options' for the installation i.d. Enter the Callback URL exactly as follows (including case):
https://<wpdisplay item="MC_callback">

If SSL is not enabled on your website the Callback URL should be:
http://<wpdisplay item="MC_callback">

Enter the Shopper Redirect URL: If you have SSL enabled USE... https://
Change Your-Web-site to your domain name.

..................

This seems to be the same notes copied from the installation notes. I have followed these exactly.

I have tonight installed a new copy of Zen v1.54 & installed WorldPay v3, I have used the default template and made no additional changes......... Still the same error!

This plugin worked fine on my last host but has become unusable on my new host. I have asked them and they suggested to disable mod_sec and remove .htaccess but still no joy.

Anyone able to help?

Regards

9 Dec 2016, 3:06 AM
#30
spacemonkey avatar

spacemonkey

Zen Follower

Join Date:
Nov 2013
Location:
Dorset, UK
Posts:
124
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

Me again,

Anyone got any suggestions of a good developer who might be able to help? This is beyond me and need to hire help in. PM me if you have any suggestions.

If I don't hear from anyone I will be posting this as a job on Freelancer in the next couple of days. I have been struggling with this for nearly 2 months now and not getting anywhere. :sadwalk: :frusty:

Any help appreciated from anyone. :please:

14 Dec 2016, 6:02 AM
#31
spacemonkey avatar

spacemonkey

Zen Follower

Join Date:
Nov 2013
Location:
Dorset, UK
Posts:
124
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

Hi All,

This issue has now been resolved for me. It appears it was a combination of passwords and most importantly COOKIE settings in session.

I hired a developer through FreeLancer who worked it through with excellent efficiency. If anyone would like his details please send me a PM.

Regards

10 Feb 2017, 4:20 PM
#32
evil_rob avatar

evil_rob

New Zenner

Join Date:
Nov 2010
Posts:
13
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

Just a Note for all Worldpay users searching for answers, i had call back issues for two weeks on a new install with a new web host and in the end it only got resolved when Worldpay refreshed their DNS servers and my problem went away by itself !!

Anyhow do you get the World pay section to display in the customer drop down menu?, i have installed the module exactly as described and yet i cannot see the world pay part in the customers drop menu

Any one have any idea's ??

Many thanks

12 Feb 2017, 5:26 PM
#33
evil_rob avatar

evil_rob

New Zenner

Join Date:
Nov 2010
Posts:
13
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

Can anyone help me please ?

Its the part of the module below i am having problems with, my site and another test site will not display in the admin/customers section using 1.55b on one site and 1.55d on our next new test site

Manual tells you that you should have ....

New page in admin section which you get to by clicking on Admin--> Customers--> World Payments Page Logs all WorldPay responses including cancelled transactions (and what was in the shopping cart)

Both my sites have it missing

Many thanks

12 Feb 2017, 11:54 PM
#34
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: WorldPay Module version 3.0 - Support thread

Evil Rob:

Can anyone help me please ?

Its the part of the module below i am having problems with, my site and another test site will not display in the admin/customers section using 1.55b on one site and 1.55d on our next new test site

Manual tells you that you should have ....

Both my sites have it missing

Many thanks
The instructions say to go to Admin->Modules->Payment, and click on WorldPay, and click Install. That's supposed to add the menu item to the Customers menu.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Feb 2017, 1:13 PM
#35
evil_rob avatar

evil_rob

New Zenner

Join Date:
Nov 2010
Posts:
13
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

Thank You Dr Byte

Your help is always gratefully appreciated

On both my sites this is not the case and wondered if anybody had had the same problem with world pay not apprearing so you can install that part of the module

Worldpay is working fine, i just cant see the extra bit that shows failed transactions etc..

13 Feb 2017, 4:52 PM
#36
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: WorldPay Module version 3.0 - Support thread

Evil Rob:

Thank You Dr Byte

Your help is always gratefully appreciated

On both my sites this is not the case and wondered if anybody had had the same problem with world pay not apprearing so you can install that part of the module

Worldpay is working fine, i just cant see the extra bit that shows failed transactions etc..
Then it could be that you didn't upload the admin files to your admin directory. Remember, the "YOUR_ADMIN" folder isn't the literal foldername. The files in that folder (and its subfolders) need to be uploaded to your real admin foldername and its subfolders.

The menu item gets inserted when the payment module is installed: lines 433-438 of /includes/modules/payment/worldpay.php

Then when the menu is drawn, it relies on the related defines in the /your_real_admin_foldername/includes/languages/english/extra_definitions/worldpay_response.php file but if that file doesn't exist or its contents damaged then the menu item won't show.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Feb 2017, 10:14 PM
#37
evil_rob avatar

evil_rob

New Zenner

Join Date:
Nov 2010
Posts:
13
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

Taking onboard Dr Bytes advice and comments i did a complete uninstall and then re installed it taking lots of care and taking my time..

And hey Presto its working

Now that would be great if i had not done it 3 times previously!!

I think the moral here is to not do it late at night where your tired :blink::no:

12 Apr 2017, 9:36 AM
#38
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: WorldPay Module version 3.0 - Support thread

Guys,

Thanks for the work on the module. I am working my way through the install of it for the first time. All comments are meant constructively.

Are the following files actually needed:

Your_Store_Directory/worldpay_suhosin.php
Your_Store_Directory/wpcheck.php

I understand what they do, but cannot see any reference to them in the rest of the module.

Nick
iszent.com

18 Apr 2017, 3:34 PM
#39
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: WorldPay Module version 3.0 - Support thread

Well, I definitely had some callback issues. basically, the session not being recreated on return from Worldpay.

That was solved by setting 'Force Cookie Use' to false in Zen Cart.

Dr. Byte, if you are available can we have a quick chat to see how to solve this in a more permanent way? There is quite a lot of stuff in this module that needs to be tidied up and I am happy to do that. But it would be good to get a foolproof solution to the callbacks first.

Nick

Nick
iszent.com

18 Apr 2017, 6:45 PM
#40
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: WorldPay Module version 3.0 - Support thread

niccol:

Well, I definitely had some callback issues. basically, the session not being recreated on return from Worldpay.

That was solved by setting 'Force Cookie Use' to false in Zen Cart.

Dr. Byte, if you are available can we have a quick chat to see how to solve this in a more permanent way? There is quite a lot of stuff in this module that needs to be tidied up and I am happy to do that. But it would be good to get a foolproof solution to the callbacks first.

Nick
I've never used this module myself, but happy to have a chat. Let's PM.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.