Zen Cart Logo
Forums / Addon Payment Modules / WorldPay Module for ZenCartv1.3x

WorldPay Module for ZenCartv1.3x

Locked

Views: 137,079

Results 121 to 140 of 464
This thread is locked. New replies are disabled.
05 Mar 2007, 22:01
#121
duncanad avatar

duncanad

Zen Follower

Join Date:
Nov 2004
Location:
Glasgow, Scotland
Posts:
247
Plugin Contributions:
0

WorldPay Module for ZenCartv1.3x

Kelvyn,

Sorry - your right! That is a recent change at PayPal and may make them a more attractive proposition. It may take a while to overcome their current peer to peer image 'though.

Anyway - thanks for putting me right on that - every day is a school day!

I'm not saying one is better than the other. What I am saying is that it is horses for courses. It is for each Merchant to do his own research and make his own decision. The website I mentioned above is a great place to start researching.

Regards,

Alan

15 Mar 2007, 08:40
#122
bean_2k1 avatar

bean_2k1

New Zenner

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

Re: WorldPay Module for ZenCartv1.3x

i have tested world pay on my site, when on tested mode is the order that im testing meant to come up in the admin area because i have an email say the order is confirmed but nothing in the admin section is this right or is it bugged.

Still havent tested it live yet tho because world hasnt activated the account yet

15 Mar 2007, 10:19
#123
duncanad avatar

duncanad

Zen Follower

Join Date:
Nov 2004
Location:
Glasgow, Scotland
Posts:
247
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

bean_2k1

In test mode the WorldPay module should work exactly as a live transaction with the exception that there is an added 'This is a test transaction - no money has changed hands' message.

On completion of a test transaction you should be transferred back from the WorldPay website to your store where you should see the 'Checkout Success' page. If you see this page the WorldPay callback has been successful and a new order will have been created in your store database which you will be able to access via the store admin.

You should now receive 4 emails, one each, as the customer, from Worldpay and your ZenCart store and one each, as the store owner, again from WorldPay and your store.

When you log into your WorldPay account you should be able to see the transactiion in your 'Test' account.

If one or any of the above does not happen then something is wrong and you are not ready to go live.

If all is not well the first thing to do is to check all of your settings both in the ZenCart admin and in the WorldPay control panel. If things are still not OK you will need to explain exactly what is happening.

I have a test site at rcm.testingit.net which is linked in test mode to my WorldPay test account. Make a purchase on this site using visa card no 4111111111111111 and you will see how it should work from the customer's perspective.

Hope this helps,

Alan

15 Mar 2007, 10:48
#124
bean_2k1 avatar

bean_2k1

New Zenner

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

Re: WorldPay Module for ZenCartv1.3x

One the transtation is complete on the testing settings 100 it bring me back to the my website saying

... your payment has been cancelled!
Response from WorldPay:

This is a TEST TRANSACTION. No money has changed hands

Your payment has been cancelled. Please contact us for alternative methods of payment. If you have experienced any problems with your payment please contact WorldPay immediately.

Our ref:

You will find WorldPay contact information here

But when i login in to my admin there is no orders in there at all

15 Mar 2007, 11:17
#126
duncanad avatar

duncanad

Zen Follower

Join Date:
Nov 2004
Location:
Glasgow, Scotland
Posts:
247
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

bean_2k1:

... your payment has been cancelled!

Now why didn't you say so in the first place?

If the the payment has been 'Cancelled' the WorldPay module quite correctly does not create the order which is why you don't see it in Admin.

That the module thinks the payment has been cancelled for some reason is your real problem. This has been discussed in depth in previous posts. The following should get you on the right track:

http://www.zen-cart.com/forum/showpost.php?p=289666&postcount=76

http://www.zen-cart.com/forum/showpost.php?p=289677&postcount=77

Please post back here which solution solves your problem (or if none of them do).

Regards,

Alan

15 Mar 2007, 11:24
#127
duncanad avatar

duncanad

Zen Follower

Join Date:
Nov 2004
Location:
Glasgow, Scotland
Posts:
247
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

bean_2k1,

Ooops - I see you found the solution yourself just as I was posting.

Well done. Glad you got it sorted.

Alan

18 Mar 2007, 20:16
#128
theshark avatar

theshark

New Zenner

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

Re: WorldPay Module for ZenCartv1.3x

Where can I find a copy to download?

18 Mar 2007, 21:54
#129
duncanad avatar

duncanad

Zen Follower

Join Date:
Nov 2004
Location:
Glasgow, Scotland
Posts:
247
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

It's available from Downloads!

Alan

23 Mar 2007, 13:35
#130
bean_2k1 avatar

bean_2k1

New Zenner

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

Re: WorldPay Module for ZenCartv1.3x

i have had my first customer today on my store, i noticed a problem when worldpay return me to my shopping screen. at the moment worldpay contrib is set to live and all the payments have gone though correctly but when the customer is returned to my shop it still comes up "This is a TEST TRANSACTION. No money has changed hands" even tho the money has gone in too our account

Anyone know how to fix this

Also the ref code 26 letters long is there anyway i can shorten this to about 10 letters ?

Thanks Steven

23 Mar 2007, 15:03
#131
duncanad avatar

duncanad

Zen Follower

Join Date:
Nov 2004
Location:
Glasgow, Scotland
Posts:
247
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

bean_2k1

Just add quotes!

See:

http://www.zen-cart.com/forum/showpost.php?p=253886&postcount=63

The ref is actually the Zen cart ID so it is what it is. WorldPay also store this ID in the transaction record so it acts as a cross reference between you and WorldPay so I'm afraid you are stuck with it.

There has been some discussion about cross referencing earlier in this thread.

Hope this helps.

Alan

25 Mar 2007, 22:24
#132
unifex avatar

unifex

New Zenner

Join Date:
Mar 2006
Posts:
12
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

Remember my post nr.76 in this thread.
I had a problem with the worldpay module, that we can fix. Until yesterday, worldpay works fine for me.
Now I get an error message. When trying to checkout using the latest version of world pay, I get the following error.
Catchable fatal error: Object of class queryFactoryResult could not be converted to string in /xx/htdocs/xxxxx/www/shop-neu/includes/functions/functions_general.php
on line 668

I didn´t make a change in Zen Cart but my provider updated PHP from version: 5.1.5 to 5.2.1
Could this be a problem? I use Zen 1.36.
Any idea how I can fix the problem?

26 Mar 2007, 09:50
#133
duncanad avatar

duncanad

Zen Follower

Join Date:
Nov 2004
Location:
Glasgow, Scotland
Posts:
247
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

Unifex,

If the only thing that has changed is the version of PHP then this must be the prime suspect.

The error message is telling you that the problem is occuring when the script tries to determine the currency to use in
..../includes/functions/functions_general.php
This is a core file that has not been amended in any way by the WorldPay mod although the Wordpay mod requires the session currency in order to pass the transaction over to WorldPay.

My understanding is that Zencart on PHP 5 is not currently supported but there are those who are successfully running Zencart on PHP5. It might be an idea to look for a thread on using PHP5 and raise this issue there. If (when) you do find a solution please post back here to assist others.

Regards,

Alan

12 Apr 2007, 16:31
#134
dasonix avatar

dasonix

New Zenner

Join Date:
Sep 2006
Posts:
79
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

I have just finished settign up my new Zen cart install

I am useign the latest version of Zen, Chemos SEO Url's and the latest? worldpay module.

When trying to test the system the Worldpay module is unable to receive the call back. (http://www.mydomain/wpcallback.html)

here is the error from worldpay

Our systems have detected that your callback has failed.

This callback failure means we were unable to pass information to your server about the following transaction:

Transaction ID: 235892914
Cart ID: 0541f55946a7063f163b420d8bc8d3b2
Installation ID: ********

Error reported: Callback to
http://www.mydomain/wpcallback.html?zenid=0541f55946a7063f163b420
d8bc8d3b2: NOT OK, recevied HTTP status: 302
Server Reference: mggaeq3a:callbackFailureEmail-21077742:MerchReq-806

here is the servers response to the callback

Set-Cookie: cookie_test=please_accept_for_session; expires=Sat, 12 May 2007 16:17:43 GMT; path=/; domain=www.mydomain
Location: http://www.mydomain/time_out.html
Connection: close

I have tried hard-wiring the URL into the worldpay Cpanel, turning SEO URL's off

and now haven't got a clue where to go from there.

Please advise

12 Apr 2007, 18:40
#135
duncanad avatar

duncanad

Zen Follower

Join Date:
Nov 2004
Location:
Glasgow, Scotland
Posts:
247
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

dasonix,

http://www.mydomain/wpcallback.html?...6a7063f163b420
d8bc8d3b2:

There is no such file as 'wpcallback.html'

In your WorldPay account you should set the Callback URL to:

http://<wpdisplay item="MC_callback">

'MC_callback' is set by the WorldPay Module and passed to WorldPay so that WorldPay knows where to send the response. In this way several sites can use the same WorldPay account for payment processing. There is no need to set this to anything else.

I would suspect that SEO URLs is the problem - I have not tested the WorldPay module with this contribution. Perhaps you could try uninstalling this contribution. If that doesn't work it may be a problem with your server configuration.

Regards,

Alan

12 Apr 2007, 19:42
#136
dasonix avatar

dasonix

New Zenner

Join Date:
Sep 2006
Posts:
79
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

wpcallback.html is what the seo mod turns the file into. (this is what the callback is told to contact when wp is set to http://<wpdisplay item="MC_callback">

Even when the SEO mod is turned off the problem still exists.

Server config would not be the issue as I have been runnign OSC with the worldpay mod for over 2 years without a problem. my osc also had the same SEO mod installed.

even if i change the http: to https: for
http://<wpdisplay item="MC_callback">
and direct url its still doing it.

Could it just be a redirect issue? as the SEO mod redirects all calls for PHP to the equivelent HTML file ?

Is there a way to drop the callback file into the root (like in OSC )as a php file? so it can be directly called

here is server info for you

HTTP Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.8a PHP-CGI/0.1b

PHP ver is 4.4.4
MySQL 4.1.21-standard

12 Apr 2007, 21:55
#137
duncanad avatar

duncanad

Zen Follower

Join Date:
Nov 2004
Location:
Glasgow, Scotland
Posts:
247
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

dasonix,

Have you tried completely removing SEO URLs? I would advise getting things working without the SEO mod installed before going any further.

I'm not familiar with the SEO mod so I cannot comment on how it does or should work. I believe that there are other contributions which do not work with this mod - e.g. Admin Profiles.

MC_callback is equivalent to the following URL

www.mydomain.com/index.php?main_page=wpcallback&zenid=dirtylongalphanumeric

Two things to note:

  1. Although the ZenCart WorldPay module is based on the OSC module it differs in the way it responds to the callback response from WorldPay. The original OSC module returned the customer to a 'Checkout Success' page requiring the customer either to click on a link or not close the browser window for at least 10 seconds to allow an auto re-direct to kick in and for the order creation process to be completed. If the customer on seeing the 'Success' message simply closed the browser then the order would not be created and, as far as the merchant is concerned, lost even though WorldPay had debited the customer's card.

The ZenCart WorldPay module does the required processing to complete the order before displaying the 'Success' message which eliminates this problem. Because there is some code involved the callback URL cannot be to a .html file.

  1. Although ZenCart itself is derived from OSC the two projects diverged some years ago. I cannot speak for OSC but ZenCart has developed considerably since then and I would be surprised if there are not by now some fairly fundamental differences between the two sets of code which may well render any comparison on how a module might work in either pretty meaningless.

I know that some have had problems with the WorldPay module where their server is set up with any sort of re-direct arrangement hence my comment about there perhaps being a server issue. I understand WorldPay treat re-directs with suspicion and refuses to complete the callback. This may be also an issue with the SEO URLs mod.

If, after you have removed the SEO mod, you are still getting errors please post details here and I will try to assist you as best I can.

Regards,

Alan

12 Apr 2007, 22:03
#138
dasonix avatar

dasonix

New Zenner

Join Date:
Sep 2006
Posts:
79
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

I have now totaly removed the SEO mod (even the .htaccess)

Have set the WP cpanel back to recomended default as above(exept changed the http to https as its a secure server), and yet everything it sends the callback to the timeout page?

this is where it is calling back to with all defaults in place

https://www.bunnybasics.net/index.php?main_page=wpcallback&zenid=24281b08c9f6aca0ffcb6aba78cae2e5:
NOT OK, recevied HTTP status: 302
Server Reference: mggaeq4a:callbackFailureEmail-21117016:MerchReq-231
this is what our server is responding to the call back

HTTP/1.1 302
Date: Thu, 12 Apr 2007 21:41:35 GMT
Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2
mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.8a
PHP-CGI/0.1b
X-Powered-By: PHP/4.4.4
Set-Cookie: cookie_test=please_accept_for_session; expires=Sat, 12 May 2007 21:41:35
GMT; path=/; domain=www.bunnybasics.net
Location: https://www.bunnybasics.net/index.php?main_page=time_out
Connection: close
Content-Type: text/html; charset=iso-8859-1

could this be the problem??????? just a hunch

snip from WP request to our server: MC_callback=www.bunnybasics.net%2Findex.php%3Fmain_page%3Dwpcallback%26zenid%3Db8800ed16c5bc42cb2091f3276c7a187
actual string sent in URL to server
zenid=3Db8800ed16c5bc42cb2091f3276c7a187

could it be the way the string is formated?

the actual server responce for this transaction is as above

please help as its driveing me nuts

12 Apr 2007, 22:29
#139
duncanad avatar

duncanad

Zen Follower

Join Date:
Nov 2004
Location:
Glasgow, Scotland
Posts:
247
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

dasonix,

http 302 error means that the server thinks your URL has been temporarily re-directed to another URL. Any reason why that might be?

Have you tried

http://<wpdisplay item="MC_callback">

rather than

https://<wpdisplay item="MC_callback">

From memory I think you may have to make a change in the code to use https:// but I may be wrong - and it may depend on how your secure server is set up.

Let me know if this makes any difference.

Regards,

Alan

12 Apr 2007, 22:53
#140
duncanad avatar

duncanad

Zen Follower

Join Date:
Nov 2004
Location:
Glasgow, Scotland
Posts:
247
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

dasonix,

I've just checked and if you set the callback URL to:

https://<wpdisplay item="MC_callback">

you must also make a change in

includes/modules/payment.worldpay.php at line 129

from:

$worldpay_callback = explode('http://', $callback_url);

to:

$worldpay_callback = explode('https://', $callback_url);

Hope this helps,

Alan