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

WorldPay Module version 2.0 - Support thread

Locked

Views: 215,936

Results 681 to 700 of 738
This thread is locked. New replies are disabled.
20 Feb 2012, 10:04 AM
#681
barendfaber avatar

barendfaber

Zen Follower

Join Date:
Apr 2010
Posts:
263
Plugin Contributions:
0

WorldPay Module version 2.0 - Support thread

Hi all,

OK, so seem to have an issue with the installation, if someone could please direct me.

I am using Zen Cart version 1.3.9f, with Worldpay v 2. I have added all the info as per the install instructions, I have created my Payment Response Password and MD5 secret for transactions password, added my Payment Response url (http://<wpdisplay item="MC_callback"), added the passwords to my Zen Cart Worldpay installation, added a php.ini file with session.use_only_cookies = off, and I have PHP version 5.2.17.

When I place the order through the site (https://www.blackorangevintage.com), I get to the Worldpay screen where I can add my card details, it then takes the payment and give me a success screen (Thank you, your payment was successful
Merchant's Reference: *******
WorldPay Transaction ID: *********). I get the confirmation e-mail from Worldpay, no e-mail from Zen Cart and no order in Zen cart. I have been looking at the posts and have tried various things but cannot seem to make it work. Please, please help! :frusty:

1 Mar 2012, 3:12 PM
#682
btaylor351 avatar

btaylor351

New Zenner

Join Date:
Aug 2011
Posts:
10
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

Is anyone using Worldpay with zencart v1.5 with PHP 5.3. I'm currently upgrading but have had a problem with worldpay itself when my host changed from PHP 5.2 to 5.3, had to put in an override to allow the site to carry on as PHP 5.2 but this option will not be available in a couple of weeks.

9 Mar 2012, 2:35 PM
#683
btaylor351 avatar

btaylor351

New Zenner

Join Date:
Aug 2011
Posts:
10
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

Found the answer finally in one of the above posts by niknfa. Managed to get a copy of the hosts phpinfo and compared the 5.2 with the 5.3 version, found the session.use_only_cookies had changed.

Put in an overriding php.ini and its now working fine :smile:

19 May 2012, 10:39 AM
#684
pinksparklegirl avatar

pinksparklegirl

New Zenner

Join Date:
Aug 2011
Location:
UK
Posts:
41
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

I too was having problems with Zen Cart not receiving orders from WorldPal, and callback error 302 when transactions were made. WorldPay wasn't sending customers back to my site either.

The solution I found was to add this to my root .htaccess file:

php_value session.use_only_cookies 0

I've not yet had a live order (it's a new shop - https://www.furnitureonthemove.co.uk/shop), but cancelled orders (which I have made) and test orders all performed correctly within WorldPay and Zen Cart.

I hope this helps!

23 Jul 2012, 1:52 PM
#685
robm avatar

robm

New Zenner

Join Date:
Nov 2006
Posts:
88
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

Hi,

I seem to have developed a problem with callbacks failing (404 page not found?) all of a sudden.

Customers can go through the payment process as normal, but their order details are not being sent back to Zen Cart.

All files are in the right folders.

I do not have the Ultimate SEO URL plugin installed.

I've checked the cookie settings which are as follows:

session.use_cookies On On
session.use_only_cookies Off Off

I've spoken to Worldpay who insist everything is working correctly at their end.

2012-07-23 12:16:44.914 (msgTESTConn1-31738)] INST : 258664
[2012-07-23 12:16:44.914 (msgTESTConn1-31738)] DESC : Purchase from Caravan Parts & Accessories
[2012-07-23 12:16:44.914 (msgTESTConn1-31738)] CART ID: c829qe9pt90llreknp5kkqap06
[2012-07-23 12:16:44.914 (msgTESTConn1-31738)] TRANSID: 133132206
[2012-07-23 12:16:44.915 (msgTESTConn1-31738)] STATUS : Y
[2012-07-23 12:16:44.915 (msgTESTConn1-31738)] SHOPPARAMS: MC_callback=www.caravanpartsaccessories.co.uk%2Findex.php%3Fmain_page%3DFILENAME_WP_CALLBACK%26zenid%3Dc829qe9pt90llreknp5kkqap06
[2012-07-23 12:16:44.915(msgTESTConn1-31738)] MERCHPARAMS: amount=1.00¤cy=GBP&amountString=%26%23163%3B1.00&MC_callback=www.caravanpartsaccessories.co.uk%2Findex.php%3Fmain_page%3DFILENAME_WP_CALLBACK%26zenid%3Dc829qe9pt90llreknp5kkqap06&M_postcode=DN4+5HX&M_address=Doncaster+Business+Innovation+Centre%0D%0ATen+Pound+Walk%0D%0ADoncaster%0D%0ASouth+Yorkshire
[2012-07-23 12:16:44.938 (msgTESTConn1-31738)] Starting callback handling
[2012-07-23 12:16:44.955 (msgTESTConn1-31738)] LegacyCallbackURLProcessor: Converted from 'http://<wpdisplay item="MC_callback">' to 'http://www.caravanpartsaccessories.co.uk/index.php?main_page=FILENAME_WP_CALLBACK&zenid=c829qe9pt90llreknp5kkqap06'
[2012-07-23 12:16:46.122 (msgTESTConn1-31738)] Callback Failed: Callback to http://www.caravanpartsaccessories.co.uk/index.php?zenid=c829qe9pt90llreknp5kkqap06&main_page=FILENAME_WP_CALLBACK: NOT OK, recevied HTTP status: 404
[2012-07-23 12:16:46.127 (msgTESTConn1-31738)] Callback handling failed
[2012-07-23 12:16:46.127 (msgTESTConn1-31738)] Adding any logs which are available
[2012-07-23 12:16:46.135 (msgTESTConn1-31738)] --- No logfile for callback failure: 23/07/201212:16:46,133132206,c829qe9pt90llreknp5kkqap06,258664,"Callback to http://www.caravanpartsaccessories.co.uk/index.php?zenid=c829qe9pt90llreknp5kkqap06&main_page=FILENAME_WP_CALLBACK: NOT OK, recevied HTTP status: 404" ---
[2012-07-23 12:16:46.143 (msgTESTConn1-31738)] Receipt handling finished

Thanks,
Rob.

23 Jul 2012, 2:21 PM
#686
dave_g_1 avatar

dave_g_1

New Zenner

Join Date:
Mar 2007
Posts:
83
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

I started to see this same kind of problem after updating my PHP to version 5.3.xx check to see if your website/web host has done a PHP update.
I was able to fix by telling the effected web site to use PHP 5.2.xx check with your web host on how/if you can do this as a test.
I'm hoping some one will be able to adjust this plugin to work with PHP 5.3/5.4

Dave G

23 Jul 2012, 2:50 PM
#687
robm avatar

robm

New Zenner

Join Date:
Nov 2006
Posts:
88
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

We've had problems with the PHP upgrade changing the cookies to ON, but they're currently set to OFF and we're still experiencing the same issue...

23 Jul 2012, 4:26 PM
#688
webchills avatar

webchills

Zen Follower

Join Date:
Sep 2005
Location:
Austria
Posts:
99
Plugin Contributions:
1

Re: WorldPay Module version 2.0 - Support thread

RobM:

Callback Failed: Callback to index.php?&main_page=FILENAME_WP_CALLBACK:
Looking at this it seems that you have deleted the following file:
includes/extra_datafiles/wp_callback_filenames.php
Is this file at this location in your Zen-Cart installation?
If yes what is the content of this file?

23 Jul 2012, 4:39 PM
#689
dave_g_1 avatar

dave_g_1

New Zenner

Join Date:
Mar 2007
Posts:
83
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

RobM:

We've had problems with the PHP upgrade changing the cookies to ON, but they're currently set to OFF and we're still experiencing the same issue...

Yep did the same thing and found reverting back the earlier php fixed it but this is on my system. I'm just suggesting a try it.

Dave G

1 Aug 2012, 2:36 PM
#690
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

Hi all,

I have got a weird issue here...

The first transaction I make always has callback failure, but do as many as you want to straight afterwards they all go through perfectly. The site is hosted with Godaddy and I'm sure that the problem lies there. Am I correct in saying this or is it a worldpay setting or am I way off the mark.

To me it looks like worldpay and godaddy are taking to long 'shake hands' but once they do its fine... until you 'look away' for too long again.

Has anyone got a similar issue or better resolved something like this?

Don't want to be a pain, but if any knows, it quite urgent.

Thanks,
Jay

23 Aug 2012, 3:57 PM
#691
k9dug avatar

k9dug

New Zenner

Join Date:
Oct 2010
Location:
Glasgow, Scotland
Posts:
29
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

Just arrived to post a similar issue to Jay..

I have the Worldpay module debug activated and Be discreet? set to False. WP set to TEST mode.

I make a test transaction and all appears to go well according to the Worldpay pages. I end up sitting at the WP Thankyou page (resultY.html) which says the transaction successful, no money chage hands etc.

I receive 5 emails for that transaction, in order of arrival here:

  1. [NEW ORDER] Order Confirmation No: 10
    from my Zen Cart shop. All looks OK here.

  2. Callback Failure Alert From WorldPay
    HTTP status: 500

  3. WorldPay CARD TEST transaction confirmation: 134363xxx
    Transaction details and then "The above payment has been processed." All looks OK.

  4. WorldPay debug from {myshop}.com
    Sent from my server: anonymous@...

  5. WorldPay debug from {myshop}.com
    Sent from my server: anonymous@...

The first 3 emails arrive within a minute.

The last 2 arrive 7 minutes later and are identical apart from small items such as:
4 - [authAmountString] => US$18.87
5 - [authAmountString] => US$18.87

4 - {myshop}.com/index.php?main_page=wp_callback&zenid=hlfgh17uknbo7k576bvr9i9r86
5 - {myshop}.com/index.php?main_page=wp_callback&zenid=hlfgh17uknbo7k576bvr9i9r86

4 - [amountString] => US$18.87
5 - [amountString] => US$18.87

4 - [cartID] => 05674 (values in array are as per the order)
5 - [cartID] => (values empty/0)

Order details look ok in the database (orders and worldpay_payments tables) and in the customer's order details page.

Anybody any idea as to why I am getting the 500 error?

Thanks in advance,

Gav

ZC 1.3.9

23 Aug 2012, 4:44 PM
#692
4jdesigns avatar

4jdesigns

Zen Follower

Join Date:
Jul 2011
Posts:
106
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

hey Gav, who you hosted with?

If I recall (just double check), I think your 500 error may do with something regarding PHP upgrade and sessions or cookies turned to false... Just something that came to mind.

jay

29 Aug 2012, 2:40 PM
#693
k9dug avatar

k9dug

New Zenner

Join Date:
Oct 2010
Location:
Glasgow, Scotland
Posts:
29
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

Jay,

sorry for the delayed response. Juggling too many things right now.

I did come across a few mentions of the effect that PHP upgrades have on Zen Cart, due to the later PHP versions having session.use_only_cookies set to off by default. This is said to be more secure, but I couldn't get callbacks to work at all, so had to switch it off after moving server. I do plan to investigate how to run Zen cart with the directive set to on, but haven't had time yet.

Hosting on a dedicated linux server, so can do what I need when I find out what to do.

I will post as I discover...

Cheers,

Gav

31 Aug 2012, 8:24 AM
#694
k9dug avatar

k9dug

New Zenner

Join Date:
Oct 2010
Location:
Glasgow, Scotland
Posts:
29
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

What is the default behaviour of the Worldpay module?

I have several problems in my effort to get the Worldpay module running in Zen Cart 1.3.9. I realised that I don't actually have any idea what it should do "out of the box" so to speak, so this makes it more difficult to tell whether there is an actual problem or if I just need to configure it properly.

One thing that would be very helpful would be to know whether there is a default Customer Response page? In other words, if I log into my Worldpay control panel and set it as follows, should I automatically see a Customer Response page on completion of the transaction? Or do I have to create one from scratch and insert a placeholder in it for all of WP's transaction report content?

Attachment 11051
My settings in the TEST integration page.

The callback behaves as follows with these settings:

  • I get the correct data stored in the worldpay_payments db table.
  • I do get a Callback Failure Alert (HTTP status: 500) email with every completed transaction, even though I also get all the other confirmation emails to both admin and shopper.
  • I don't get a Customer Response page.
  • I do see a default resultY.html page.
  • I also get a modified resultY.html page OK.

Any suggestions as to my next steps for getting a Customer Response page?

Finally, is there anybody out there? (other than Jay). I get the impression that this Worldpay module is not being used much now and not supported.

4 Oct 2012, 8:25 AM
#695
bottyz avatar

bottyz

New Zenner

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

Re: WorldPay Module version 2.0 - Support thread

Hi all,

I've read numerous posts and tried numerous times to amend the code in the worldpay module from the plugins page and can't get this to work. I know its no longer updated as the developer has now gone, what my question is, is there any other payment addon that would allow us to work with worldpay?

I've looked about and can't find one, however my employer will only work with worldpay so I'm in a catch 21 situation. I've applied for help on oDesk as I'm willing to pay a reasonable fee (even out of my own pocket) in order to get a payment mod that will work. However, oDesk doesn't seem to have anybody that can help.

The current stage i'm at is updating from v1.3.9h to v1.5.1 and aiming to become PCI compliant by switching from ceon manual card to worldpay. I have installed the worldpay mod and followed the instructions to configure it and attempted to update some of the code myself (i'm fairly good with php but some of this code loses me!). I can process a test transaction successfully however, I get a http: 302 error when trying to get a payment response page appear. This wouldn't be such an issue if zen cart recorded the order has been placed and payment taken, however it doesn't but the payment is still taken. I've tried turning on the debug email setting, which unforuntately sends nothing unless a payment response page has been generated. I've also turned off the be discreet option which does offer up a debug email in the form of 'Password Failure'. I've double & triple checked passwords are identical both at worldpay and in the module, along with the md5 requirement is switched on and matches also.

If anyone on here can help I'm willing to put time in to configure the code and also some money. Then if by some miracle we can get one working, I'll happily offer it up on the addons page (subject to any approval needed by ZC plugin moderators).

4 Oct 2012, 9:00 AM
#696
bottyz avatar

bottyz

New Zenner

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

Re: WorldPay Module version 2.0 - Support thread

Hi all,

I've just posted a new thread asking for help in updating this module to work with v151. I'm willing to offer some money towards the help as its the only payment gateway my employer wants to use. I've got everything working except the payment response gives a 302 password failure error, even though the passwords have all been set and are identical across both the zencart module and worldpay themselves.

See above.

6 Oct 2012, 5:52 PM
#697
bigenuf avatar

bigenuf

New Zenner

Join Date:
Nov 2008
Posts:
47
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

bottyz:

Hi all,

I've just posted a new thread asking for help in updating this module to work with v151. I'm willing to offer some money towards the help as its the only payment gateway my employer wants to use. I've got everything working except the payment response gives a 302 password failure error, even though the passwords have all been set and are identical across both the zencart module and worldpay themselves.

See above.

Try using test1 as the password in the zencart side of the setup for worldpay the worldpay test side does alot of weird things at times like using a password of it's choice which will show up in the debug email. I've had this module running on zencart 1.3.7.1, 1.3.8a and 1.3.9h. Also do not use the copy to production button in the test side of worldpay it always messes up the passwords. Try also setting it to LIVE go to worldpay but cancel the order and it should return you to your site, send a debug and log it in the worldpay payment under customers. The only thing i have had to change in the code is a bit that had a problem with php 5.3 but it didn't effect the functionality.

6 Oct 2012, 6:51 PM
#698
bigenuf avatar

bigenuf

New Zenner

Join Date:
Nov 2008
Posts:
47
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

Here is a PHP 5.3 specific error you will get in this module. If you see this in Customers> Worldpay Payments

Warning: number_format() expects parameter 1 to be double, string given in /home/xxxxx/public_html/admin/worldpay_response.php on line 141

The fix is go to line 141 in admin/worldpay_response.php and change

This

<td class="dataTableContent" align="right"><?php echo $wp_response->fields['REQUEST']['authCurrency'] . ' '.number_format($wp_response->fields['REQUEST']['authAmount'], 2); ?></td>

To This

<td class="dataTableContent" align="right"><?php echo $wp_response->fields['REQUEST']['authCurrency'] . ' '.number_format((double)$wp_response->fields['REQUEST']['authAmount'], 2); ?></td>

I really don't understand why adding (double) works - maybe someone can explain :unsure: All i know is that on PHP 5.2 everything works ok but change to PHP 5.3 and it throws this error but otherwise the module works fine for transactions.
This is tested and running on 1.3.9h in PHP 5.3.

If your using Worldpay you are outsourceing the payment processing and your site never comes into contact with any credit card data so your site doesn't need to be PCI DSS compliant but your payment gateway does and that is worldpay but you do need to do a PCI DSS self assessment through worldpay.

9 Oct 2012, 3:55 PM
#699
bottyz avatar

bottyz

New Zenner

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

Re: WorldPay Module version 2.0 - Support thread

Bigenuf:

Here is a PHP 5.3 specific error you will get in this module. If you see this in Customers> Worldpay Payments

Warning: number_format() expects parameter 1 to be double, string given in /home/xxxxx/public_html/admin/worldpay_response.php on line 141

The fix is go to line 141 in admin/worldpay_response.php and change

This

<td class="dataTableContent" align="right"><?php echo $wp_response->fields['REQUEST']['authCurrency'] . ' '.number_format($wp_response->fields['REQUEST']['authAmount'], 2); ?></td>

To This

<td class="dataTableContent" align="right"><?php echo $wp_response->fields['REQUEST']['authCurrency'] . ' '.number_format((double)$wp_response->fields['REQUEST']['authAmount'], 2); ?></td>

I really don't understand why adding (double) works - maybe someone can explain :unsure: All i know is that on PHP 5.2 everything works ok but change to PHP 5.3 and it throws this error but otherwise the module works fine for transactions.
This is tested and running on 1.3.9h in PHP 5.3.

If your using Worldpay you are outsourceing the payment processing and your site never comes into contact with any credit card data so your site doesn't need to be PCI DSS compliant but your payment gateway does and that is worldpay but you do need to do a PCI DSS self assessment through worldpay.

Hi Big Enuf,

I have it installed under v1.5.1 but don't see anything under customers to do with worldpay payments? Am i missing something?

With regards to my issues:

I can confirm I now have the code working with zen-cart v1.5.1. I believe it was a problem with some of the session settings as pointed out by philip clarke a while back. I did a clean install of zen cart and the worldpay module again before figuring this one out.

I have made a few minor layout tweaks to get this to display correctly on my site and obviously changed the worldpay urls.

I did contact philip and he was available to respond (if anyone else needs him - he's available for a small fee) but I managed to get it up and running before he had to mess with the code.

I have noticed a few minor bugs such as this supposedly being v2.10 and it only showing as v2.09 in admin etc... I've also changed my side box card icons to some I have hosted locally (as ther others were ugly and to a set size).

I don't mind offering some help to anyone else who is stuck upgrading to v1.5.1. I'll contact Philip and ask if he can assist once the template system is all changed when v1.6 is released.

10 Oct 2012, 7:56 AM
#700
bottyz avatar

bottyz

New Zenner

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

Re: WorldPay Module version 2.0 - Support thread

bottyz:

Hi Big Enuf,

I have it installed under v1.5.1 but don't see anything under customers to do with worldpay payments? Am i missing something?

With regards to my issues:

I can confirm I now have the code working with zen-cart v1.5.1. I believe it was a problem with some of the session settings as pointed out by philip clarke a while back. I did a clean install of zen cart and the worldpay module again before figuring this one out.

I have made a few minor layout tweaks to get this to display correctly on my site and obviously changed the worldpay urls.

I did contact philip and he was available to respond (if anyone else needs him - he's available for a small fee) but I managed to get it up and running before he had to mess with the code.

I have noticed a few minor bugs such as this supposedly being v2.10 and it only showing as v2.09 in admin etc... I've also changed my side box card icons to some I have hosted locally (as ther others were ugly and to a set size).

I don't mind offering some help to anyone else who is stuck upgrading to v1.5.1. I'll contact Philip and ask if he can assist once the template system is all changed when v1.6 is released.

Sorry all, quick update. The code processing the payments and working the catalog side of this is working. However due to admin changes in version 1.5 the 'worldpay payments' page doesn't show.

Philip is working on the fix for me and as soon as I sort payment for it out with my bosses at work (its a quite expensive rewrite - its going to take philip at least 4 hours to fix) I'll see what I can do about getting it updated in the add ons area for everyone.

Regards

BottyZ