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 41 to 60 of 117
18 Apr 2017, 6:58 PM
#41
nick1973 avatar

nick1973

Totally Zenned

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

WorldPay Module version 3.0 - Support thread

Just thought I'd add to this guys, I have had callback issues with the Worldpay module in the past as well. I am using it on a site I am finishing off at the moment, and I am a bit concerned about the callback issues as I can't test it properly until it is actually live. I think if I remember right, Worldpay does callback but it doesn't always update the cart, and so there's not always a record of payment in the admin. Last time I had these issues I think it just went to a blank page on callback.

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

19 Apr 2017, 2:14 PM
#42
niccol avatar

niccol

Totally Zenned

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

Re: WorldPay Module version 3.0 - Support thread

thanks Nick

Yeah, interesting issues with cookies/sessions and the way Worldpay works. I am talking to Worldpay and DrByte about it and will report anything useful.

It would be good to know if anyone has this working with 'Force cookie use' set to true.

It would also be good to have a look at on a live site if anyone has one (or a dev site I can have a look at quickly). I have one setup running but it would be handy to see others.

Nick
iszent.com

25 Apr 2017, 5:13 PM
#43
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 have a fairly heavily re-written version of this module that will work with 'Force cookie use' set to true (which I think should resolve the 'callback issues' that this module suffers) and makes some other changes that I think are desirable and just gets rid of some of the bloat. I will release that at some point, probably as Version 4 of this module, but if anyone wants to help out with some testing then that would be great. Just drop me a PM.

Thanks

Nick
iszent.com

25 Apr 2017, 5:28 PM
#44
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

niccol:

Well, I have a fairly heavily re-written version of this module that will work with 'Force cookie use' set to true (which I think should resolve the 'callback issues' that this module suffers) and makes some other changes that I think are desirable and just gets rid of some of the bloat. I will release that at some point, probably as Version 4 of this module, but if anyone wants to help out with some testing then that would be great. Just drop me a PM.

Thanks

Hi Nick, I could possibly test it for you since I have a site going live in the next few days. My only concern is would your version be useable in a live environment if the callback issues are resolved?

I seem to recall that the callback issues were a mixture between the module and a setting in the worldpay admin panel last time I had an issue. I think there was a tickbox or something in worldpay that wasn't very clear, but I can't remember what it was now. I am praying that the settings I have been giving will just work to be honest.

I'm just wondering if it's possible to run the current Worldpay mod and your Worldpay mod side by side for testing?

Thanks
Nick

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

25 Apr 2017, 8:31 PM
#45
niccol avatar

niccol

Totally Zenned

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

Re: WorldPay Module version 3.0 - Support thread

Up to you really, Nick.

Basically, the old module will not work with 'Force Cookie Use' set to true in Zen Cart admin. This is basically because when the callback happens the appropriate session cannot be recreated. There may be other problems with the callbacks but I haven't found them and that reason would explain why some people were getting errors and others not.

I'd guess you probably want to run the production site with Force-cookie-use set to true. So, you are going to have problems with the old module.

To be honest, I could make it so that you can run both but I just can't be bothered :-) I'd use my version. Much of the code is pretty much the same except that it has less bloated nonsense, is a bit more secure, and works with force-cookie-use to true. What's not to like?

Nick
iszent.com

25 Apr 2017, 9:02 PM
#46
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

niccol:

Well, I have a fairly heavily re-written version of this module that will work with 'Force cookie use' set to true (which I think should resolve the 'callback issues' that this module suffers)... but if anyone wants to help out with some testing then that would be great. Just drop me a PM.

Thanks

PM Sent. Thank you for sharing.

10 May 2017, 10:46 AM
#47
niccol avatar

niccol

Totally Zenned

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

Re: WorldPay Module version 3.0 - Support thread

I have just submitted an updated version of this module.

I'll set up a new thread once it has been accepted.

Thanks

Nick

Nick
iszent.com

10 May 2017, 2:49 PM
#48
gunni avatar

gunni

Zen Follower

Join Date:
Aug 2010
Location:
Israel
Posts:
287
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

niccol:

I have just submitted an updated version of this module.

I'll set up a new thread once it has been accepted.

Thanks

Nick

I dont know about the module you have updated
but I do like your website :)

19 May 2017, 6:38 PM
#49
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

Do you have a copy of your version please niccol?

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

22 May 2017, 7:44 AM
#50
niccol avatar

niccol

Totally Zenned

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

Re: WorldPay Module version 3.0 - Support thread

After a bit of thought (and slightly fortunately having made a typo in the first submission of this module) I have decided that I am not going to submit a version of this module. The reason for this is because I think that Worldpay is not the best payment gateway. In fact, I would recommend not using it. The way it handles transferring information back to the cart is just bizarre and does not work all that well. Under those circumstances I really do not want to be supporting a module or become the person to go to with Worldpay problems :-)

There is a slight fix however for some of those people experiencing problems with callbacks. As I have discovered this may not solve all the problems but it will solve some of them. The source of some of the problems is that the session is not recreated during the callback request. That is becausee the session is recreated from a zenid in the URL. So, one solution is to put the attached override init_sessions.php file in includes/init_includes/overrides. (You may have to merge the changes if you already have a file in that position)

The only real change in this file is at line 67:

if (SESSION_FORCE_COOKIE_USE == 'True' && $_GET['main_page'] != 'wp_callback') {

Which just means that for the wp_callback page Zen will always allow the session to be created from the zenid.

Best of luck.

Nick

Nick
iszent.com

22 May 2017, 4:08 PM
#51
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

Nick, right after lots of stress over the weekend and several hours today we have Worldpay working. I am not sure if I can submit anything updated yet as I didn't work on the troubleshooting. However, in short, the zenID was generating an & in the ID which would of course break it. Some code has been added to check this before passing it and ensure the chars do not encode into an &. So when the session was coming back the ID was different so got forwarded to the page you were seeing as a 302 as the session didn’t exist under that id. - That was received from the guy who helped me.

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

22 May 2017, 5:51 PM
#52
niccol avatar

niccol

Totally Zenned

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

Re: WorldPay Module version 3.0 - Support thread

Nick

Pretty sure that zenid should be alphanumeric.

So, [a-zA-Z0-9]

or maybe actually [a-fA-F0-9] as it is based on an md5 hash.

You want to get your guy to have a look at sessions.php and see why the & was appearing in the zenid.

Nick
iszent.com

22 May 2017, 7:03 PM
#53
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

niccol:

Nick

Pretty sure that zenid should be alphanumeric.

So, [a-zA-Z0-9]

or maybe actually [a-fA-F0-9] as it is based on an md5 hash.

You want to get your guy to have a look at sessions.php and see why the & was appearing in the zenid.

Yes I know, he has done that, and appreciate its a sticking plaster solution rather than an actual fix, but I think all we are worried about at the moment is that it is working. I have told the client to swap to sagepay though, my fear is that it will fall over at some point. Whether they do is another thing.

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

22 Sep 2017, 1:56 PM
#54
bonheddwr avatar

bonheddwr

Zen Follower

Join Date:
Jun 2007
Location:
Cymru
Posts:
124
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

I've just noticed a major issue with this plugin, has anyone else had the same issue? We don't often offer coupons, but have just offered a 20% discount for a week to previous customers on our site. People can choose to pay via Worldpay or Paypal.

There haven't been any issue for customers who have chosen to pay via Paypal, but for the customers choosing Worldpay, when they insert the Coupon Code, it is worked out how much they should pay on our site with 20% off, but when they leave our site and arrive on the Worldpay site ANOTHER 20% has been taken off!

Is this a bug, or just an issue with our site?

v1.5.5 // https://www.welsh-lovespoons.co.uk/

Thanks for any advice.

22 Sep 2017, 2:12 PM
#55
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 have not experienced this issue.

I offer discount codes often with zen v1.54 & v1.55 with WorldPay v3 & v4. I don't know where to suggest looking either.

Good luck 😉

22 Sep 2017, 2:22 PM
#56
niccol avatar

niccol

Totally Zenned

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

Re: WorldPay Module version 3.0 - Support thread

What you will need to do is have a look at the data that is actually getting sent to Worldpay. Have you any debugging turned on?

Nick
iszent.com

22 Sep 2017, 2:28 PM
#57
bonheddwr avatar

bonheddwr

Zen Follower

Join Date:
Jun 2007
Location:
Cymru
Posts:
124
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

How do I turn debugging on? I'm afraid I'm a novice. If this doesn't happen for other people, it must be an issue with the way the plugin has been installed not the plugin itself? I attach an image of the 'WorldPay Payment Responses' page in the admin area...

Attachment 17321

22 Sep 2017, 2:36 PM
#58
bonheddwr avatar

bonheddwr

Zen Follower

Join Date:
Jun 2007
Location:
Cymru
Posts:
124
Plugin Contributions:
0

Re: WorldPay Module version 3.0 - Support thread

Should I set this to 'True' under Payment Modules > WorldPay Credit Card Payments v3.0?

Attachment 17322

22 Sep 2017, 2:41 PM
#59
niccol avatar

niccol

Totally Zenned

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

Re: WorldPay Module version 3.0 - Support thread

Yes.

Then issue yourself a voucher. Use the voucher to buy a product. You should get an email from Worldpay about the payment.

I have sent you a PM.

Nick

Nick
iszent.com

22 Sep 2017, 2:54 PM
#60
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

Yes. Then scroll down to Debugging List and add your email.