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

WorldPay Module for ZenCartv1.3x

Locked

Views: 137,079

Results 241 to 260 of 464
This thread is locked. New replies are disabled.
06 Mar 2008, 16:28
#241
cosmicegg avatar

cosmicegg

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

WorldPay Module for ZenCartv1.3x

arsonman:

Hi,

I only use the Worldpay module on my newly launched site. It seemed to be working ok but since the Worldpay system upgraded a few weeks ago, I receive payments but the order details cannot be found on the administrator page or elsewhere. Has anything changed in the settings or should I look for the problem someplace else?

Any suggestions?

Thanks

Hi, I seem to be having a similar problem...i think my hosting company has made some recent server changes (improving the way php runs...my a**e). has anyone got any idea how to work around this? ihavent changed any of the files and all of a sudden the callback doesnt seem to work - ie no order confirmation.

thanks for your help,
Erica

06 Mar 2008, 16:53
#242
duncanad avatar

duncanad

Zen Follower

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

Re: WorldPay Module for ZenCartv1.3x

Below is a copy of an email I just sent to Erica regarding this issue.

First of all - disaster recovery!!!

Have a look at this post - it might help you keep things ticking over until this issue is resolved.

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

Now how to resolve this issue.

Are you getting any errors reported by WorldPay?

Has WorldPay recently upgraded their interface. They are in the process of doing this although my understanding is that this should not affect you in this way.

Have you contacted your hosting company? Questions to ask:

Have they changed configuration recently?

Changes to session handling?

Moved your hosting to a new server with a different IP address?

Have they upgraded their version of PHP?

Have they made any changes at all?

Until you get answers to these questions we are really only guessing.

Other reported callback failures seem to be caused by the WorldPay callback being re-directed - which WorldPay doesn't allow.

ZenCart will attempt to re-direct to the log in page if the session is lost and when this happens the callback fails.

There are lots of reasons why a session could be lost - a simple timeout for example, but this should happen only rarely.

Your host may have changed the way it handles sessions and perhaps your sessions are no longer being maintained. If this is the case you need to look at how you have set up sessions within your config files. includes/configure.php and admin/includes/configure.php

For mine the session storage is set as follows:

define('STORE_SESSIONS', 'db');

I've never had a callback failure.

The alternative is:

define('STORE_SESSIONS', '');

This stores your sessions in a file, I think in the cache directory. For this to work the directory permissions have to be set as 'writeable'.

Hope this is of some help. Let me know how you get on.

Regards,

Alan

06 Mar 2008, 17:02
#243
loutka avatar

loutka

New Zenner

Join Date:
Nov 2007
Posts:
49
Plugin Contributions:
1

Re: WorldPay Module for ZenCartv1.3x

Please HELP,
my WP credit card processing suddenly doesn't work and site needs to go live by end of this week..!

I was running in 100 transaction mode (test transactions only) and during payment process I could choose VISA, MC, MAESTRO etc... And test transactions were processing fine.

Now VISA option disappeared and I can't get through with MC (5100080000000000) nor MAESTRO testing CC numbers, receiving:
"Declined. Sorry this transaction has been declined by your card issuer. No further information was passed to WorldPay as part of your confidentiality agreement with your card issuer. You may wish to try another card."

Call-back works fine, when I cancel transaction.

Any suggestions?

Please...

06 Mar 2008, 17:31
#244
nickster99 avatar

nickster99

New Zenner

Join Date:
Dec 2005
Posts:
13
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

The Worldpay account setup seems to have changed since the instructions with the shipping module were written. Could someone post the correct settings for the new interface so I can check my setup?

I have http://<wpdisplay item="MC_callback"> in the payment response URL

Payment response enabled? is ticked

Shopper response enabled? is ticked

All other boxes are blank

Is this correct?

At the moment I can't get a callback response, although I did a couple of days ago. I'm not aware of changing anything other than the mode from 100 to 101 to test declining (which didn't seem to work). Now I don't get a callback at all even when I cancel the transaction.

I've never had the visa / electron cards as a testing option. I've been testing with MC 5555555555554444

06 Mar 2008, 17:36
#245
duncanad avatar

duncanad

Zen Follower

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

Re: WorldPay Module for ZenCartv1.3x

Nikster and Loutka,

Are these brand new WorldPay accounts? Sounds as if they are and are using the new upgraded system.

Firstly, with regard to which brands of credit card are available for processing this is entrely down to WorldPay - you are on the WorldPay payment pages by the time you see this option so you need to contact WorldPay about which options are available on your account. It sounds very much to mee as if WorldPay are experiencing some teething problems with their new stsem.

With regard to test mode transactions, my understanding is that going forward there will be two installations per account. One for live transactions and one for test transactions. Each has it's own URL. The present Zencart WorldPay module doesn't cater for this. However for older accounts that are upgraded as part of the WorldPay system upgrade will continue to work albeit in a slightly different manner. What I am not sure about is if brand new accounts operated by the current Zencart module will work in the same way.

Here is my understanding of how an upgraded existing account will work in test mode. I haven't seen this in operation yet since none of my installations have yet been upgraded.

Test Mode '0' - results in a normal live transaction.

Test Mode '100' or '101' - results in a page asking if you want to be re-directed to the test environment. The result of the transaction is dependent upon the value of the Shopper Name field as follows:

• REFUSED (will be equivalent to a refused transaction at the bank or a failure due to the result of fraud screening checks)
• AUTHORISED (will be equivalent to a successful authorisation at the bank, but no funds transferred).
• ERROR (will be equivalent to a payment that ends in error).
• CAPTURED (will be equivalent to a successful capture result - where funds have been transferred to the merchant's account).

I'm not sure if sending Test Mode values on a brand new account will have the same result. If not there will need to be a change to the WorldPay module for new (upgraded) accounts.

Please get back to me with more specifics of what is happening.

Regards,

Alan

06 Mar 2008, 18:00
#246
loutka avatar

loutka

New Zenner

Join Date:
Nov 2007
Posts:
49
Plugin Contributions:
1

Re: WorldPay Module for ZenCartv1.3x

Thank you for your reply!

duncanad:

Are these brand new WorldPay accounts? Sounds as if they are and are using the new upgraded system.

This WP account is few yaers old. And both live mode (on old site) and testing mode (on new site - ZenCart) were working fine, till now.

duncanad:

Firstly, with regard to which brands of credit card are available for processing this is entrely down to WorldPay - you are on the WorldPay payment pages by the time you see this option so you need to contact WorldPay about which options are available on your account. It sounds very much to mee as if WorldPay are experiencing some teething problems with their new stsem.

So I will contact WP and ask them why they suddenly changed accepted CC for ouir account.

duncanad:

I'm not sure if sending Test Mode values on a brand new account will have the same result. If not there will need to be a change to the WorldPay module for new (upgraded) accounts.

I'm really confused from new WP system and need to fix this asap.

duncanad:

Please get back to me with more specifics of what is happening.

WP module in 100 mode was working fine and accepting VISA CC, then suddenly VISA is not accepted and none of payment methods go through saying: "Declined."

What more information can I give you to help solving this problem?

Kind Regards,
Loutka

07 Mar 2008, 09:13
#247
cosmicegg avatar

cosmicegg

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

Thank you for the swift reply:-)

I have asked my hosting company the questions you suggested and will have a look at sessions myself.

I'll post an update on here, hopefully we can all get it sorted!

Erica

07 Mar 2008, 13:38
#248
nickster99 avatar

nickster99

New Zenner

Join Date:
Dec 2005
Posts:
13
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

duncanad:

Are these brand new WorldPay accounts? Sounds as if they are and are using the new upgraded system.

Yes, it is the new upgraded system. My account was upgraded shortly after creation so I never actually tested it with the old system

duncanad:

Firstly, with regard to which brands of credit card are available for processing this is entrely down to WorldPay - you are on the WorldPay payment pages by the time you see this option so you need to contact WorldPay about which options are available on your account. It sounds very much to mee as if WorldPay are experiencing some teething problems with their new stsem.

I use the script to show my accepted cards on my site:

<script language="JavaScript" src="https://www.worldpay.com/cgenerator/cgenerator.php?instId=XXXXX"></script>

This shows visa and others but these are not available on checkout. I'll take this up with Worldpay to see if I can find out whats up here. I only mentioned it in case it was a symptom of a greater problem...

duncanad:

Here is my understanding of how an upgraded existing account will work in test mode. I haven't seen this in operation yet since none of my installations have yet been upgraded.

Test Mode '0' - results in a normal live transaction.

Test Mode '100' or '101' - results in a page asking if you want to be re-directed to the test environment.

Yes, it does say that I'm submitting to a live system and redirects to the test system

duncanad:

The result of the transaction is dependent upon the value of the Shopper Name field as follows:

I'm going to demonstrate the extent of my ignorance at this point! What is the Shopper Name Field?

duncanad:

• REFUSED (will be equivalent to a refused transaction at the bank or a failure due to the result of fraud screening checks)
• AUTHORISED (will be equivalent to a successful authorisation at the bank, but no funds transferred).
• ERROR (will be equivalent to a payment that ends in error).
• CAPTURED (will be equivalent to a successful capture result - where funds have been transferred to the merchant's account).

I'm not sure if sending Test Mode values on a brand new account will have the same result. If not there will need to be a change to the WorldPay module for new (upgraded) accounts.

Please get back to me with more specifics of what is happening.

I'm not exactly sure what you need in term of specifics... I'll try to give some details though.

  • Transaction submitted to Worldpay and I get

You have submitted a TEST request to a LIVE system - You can use the button below to continue on the TEST system.

  • After clicking redirect I get

TEST MODE - this is not a live transaction
This payment page has been created by WorldPay for... etc
MC, Maestro, JCB and Solo are available as payment options but no Visa cards

  • On clicking MC for example, I get 'redirecting to payment server' and then, eventually, the card detail request form.

  • On filling in the form...

Payment submitted for processing please wait for response.

  • Then the response

This was NOT a live transaction - no money has changed hands
Thank you, your payment was successful
Merchant's Reference....etc

  • It doesn't return to Zencart though and no record of the transaction is shown on my site either.

I'm in mode 100 and Worldpay settings:

http://<wpdisplay item="MC_callback"> in the payment response URL

Payment response enabled? is ticked

Shopper response enabled? is ticked

All other boxes are blank

Hope this isn't too much / wrong sort of info? And any help much appreciated!

Cheers,

Nick

07 Mar 2008, 16:41
#249
duncanad avatar

duncanad

Zen Follower

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

Re: WorldPay Module for ZenCartv1.3x

Nick,

Firstly - keep pestering WorldPAy because there is definitely something wrong at their end.

As to what exactly the 'Shopper Name Field' is, I take this to mean the 'Cardholder Name' field on the final 'Card Details' input form on WorldPay.

When yopu get to this part in the process try replacing the card holders name with 'REFUSED' and see if this results in a failed transaction. Then try 'AUTHORISED' 'ERROR' and 'CAPTURED' to see what response you get for each.

Your settings in the WorldPay control panel are fine.

Let me know how you get on.

Alan

07 Mar 2008, 17:21
#250
nickster99 avatar

nickster99

New Zenner

Join Date:
Dec 2005
Posts:
13
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

duncanad:

Nick,

Firstly - keep pestering WorldPAy because there is definitely something wrong at their end.

As to what exactly the 'Shopper Name Field' is, I take this to mean the 'Cardholder Name' field on the final 'Card Details' input form on WorldPay.

When yopu get to this part in the process try replacing the card holders name with 'REFUSED' and see if this results in a failed transaction. Then try 'AUTHORISED' 'ERROR' and 'CAPTURED' to see what response you get for each.

Your settings in the WorldPay control panel are fine.

Let me know how you get on.

Alan

Hi Alan,

Thanks for the explanation! Results below all look sensible to me. None of the options actually return me to my site with an order though...

Refused
Declined. Sorry this transaction has been declined by your card issuer. No further information was passed to WorldPay as part of your confidentiality agreement with your card issuer. You may wish to try another card.

Error
Cannot find an available route for the purchase. This may be caused by merchant configuration or remote systems failures

Captured
Thank you, your payment was successful
Merchant's Reference...

Authorised
Thank you, your payment was successful
Merchant's Reference...

Is there a setting that I'm missing thats preventing the callback maybe?

Cheers,

Nick

10 Mar 2008, 14:38
#251
loutka avatar

loutka

New Zenner

Join Date:
Nov 2007
Posts:
49
Plugin Contributions:
1

Re: WorldPay Module for ZenCartv1.3x

Hello all,
I received answer from WorldPay:

Thank you for your email. Visa payments can no longer be made whilst the site is in testMode, hence in order to make a test purchase you can use Mastercard to make a test payment. You can use the dummy card numbers 5454 5454 5454 5454, or 5555 5555 5555 4444.

Once the installation is active and switched to live mode, Visa card will be enabled as a transaction method.

Hope this can help to anyone.

10 Mar 2008, 15:12
#252
nickster99 avatar

nickster99

New Zenner

Join Date:
Dec 2005
Posts:
13
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

Great, thanks Loutka. I'm waiting for a callback from WorldPay tech support at the moment but you've answered my question already!

Now to figure out why my callback isn't working....

10 Mar 2008, 15:21
#253
loutka avatar

loutka

New Zenner

Join Date:
Nov 2007
Posts:
49
Plugin Contributions:
1

Re: WorldPay Module for ZenCartv1.3x

Nickster99:

Great, thanks Loutka. I'm waiting for a callback from WorldPay tech support at the moment but you've answered my question already!

Now to figure out why my callback isn't working....

You are welcome ;)

Did you try to check MD5 settings? There is possible error if MD5 entries don't match.

My callback is working, but SSL is broken when redirected back to our website...
Any suggestions?

10 Mar 2008, 16:45
#254
nickster99 avatar

nickster99

New Zenner

Join Date:
Dec 2005
Posts:
13
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

loutka:

Did you try to check MD5 settings?

My MD5 is set to false in the module settings. And I've not changed anything with MD5 at the WorldPay end.

Is MD5 required?

10 Mar 2008, 21:40
#255
loutka avatar

loutka

New Zenner

Join Date:
Nov 2007
Posts:
49
Plugin Contributions:
1

Re: WorldPay Module for ZenCartv1.3x

Nickster99:

Is MD5 required?

I don't know... Probably depends on your account settings. When I tried to use WorldPay without MD5 I received error message saying that connection is not secure enough.

11 Mar 2008, 10:17
#256
duncanad avatar

duncanad

Zen Follower

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

Re: WorldPay Module for ZenCartv1.3x

I'll try to summarise here where things lie with regard to the new upgraded WorldPay integration. The following applies only to transactions in TEST mode. If anyone has put any LIVE transactions through an upgraded account could they please post the result.

Thanks to cosmicegg for allowing me to put through test transactions from my test site via her upgraded account.

This is what I get:

  1. When I confirm the order I see a WorldPay page asking if I want to re-direct to the test server. This is as expected.

  2. When I click the 'Redirect to TEST' button I see the normal WorldPay opening page with the 'Test Mode' message at the top. Again this is as I would expect. However I am not seeing all the card payment options I would expect - only Mastercard and Amex. All the card options available on your account should be available here, however loutka in his post above reports that this only applies to the TEST environmenet and that the full set of card payment options are available in the Live environment.

  3. I choose 'Mastercard' and got the normal WorldPAy card details page with the 'Test Mode' message at the top. Again this is as expected.

  4. I then input test card details and changed the 'Cardholder's Name' field as follows:

a) 'REFUSED' - result, refused transaction message.
b) 'AUTHORISED' - result, the WorldPay standard 'Thank You' page, no callback to my test site and therefore no order created in Zencart. Email received from WorldPay
c) 'ERROR' - reult, error message
d) 'CAPTURED' - result, the WorldPay standard 'Thank You' page, no callback to my test site and therefore no order created in Zencart. Email received from WorldPay

The above would appear to bethe same results as reported by Nickster99 above.

If you experience the same resulyts you should report the lack of a callback in b) and d) to WorldPay. It looks as if WorldPay are not attempting the callback. My test site works fine with my old, non-upgraded account. Others also report that their sites also worked perfectly prior to upgrade so I think WorldPay is where the problem lies.

Please post here any response you get from WorldPay.

According to the WorldPay documentation upgraded accounts should use the old WorldPay URL for LIVE transactions:
https://select.worldpay.com/wcc/purchase
and use a new URL for TEST transactions:
https://select-test.worldpay.com/wcc/purchase

I set up my test site to access the new TEST URL. If anyone else wants to try this you should set TEST MODE in admin to 100 or 101, and in includes/modules/payment/worldpay.php comment out line 53 and add a new line 54 as follows:

//	  $this->form_action_url = 'https://select.worldpay.com/wcc/purchase';
	  $this->form_action_url = 'https://select-test.worldpay.com/wcc/purchase';

Here are the results I got:

When I confirm the order in Zencart the first thing I get is a warning page from Internet Explorer telling me that the security certificate for the website (WorldPay) is dodgy and advising me strongly not to continue.

If I ignore the warnings I get to the normal WorldPay entry page (with Test Mode message) but again can only choose Mastercard or Amex. Choosing Mastercard and using test card data but leaving the 'Cardholder's Name' field as is I get the WorldPay 'Thank You' page but no callback to my test site. I also get an email from WorldPay. I get the 'Thank You' page, ie successful transaction, regardless of whether my TEST MODE is set to 100 or 101!

However if I replace the 'Cardholder's Name' field with 'REFUSED', 'AUTHORISED', 'ERROR' or 'CAPTURED' I get the predicted outcome. It looks like this is the way it is going to have to work from now on.

The main issues here are the problem with the security certificate and the lack of the callback. If you get the same results as me - pester the life out of WorldPay. The whole point of the TEST environment is to test that the callback works!

Incidentaly if you try to access the new TEST URL via a non-upgraded account it won't work - you will get an error message (and a certificate problem warning).

Alan

11 Mar 2008, 10:41
#257
duncanad avatar

duncanad

Zen Follower

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

Re: WorldPay Module for ZenCartv1.3x

MD5 is not required, but if you use it you need to set it up both in the WorldPay module admin and at the WorldPay end. If you don't do both it will not work.

Alan

11 Mar 2008, 10:56
#258
duncanad avatar

duncanad

Zen Follower

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

Re: WorldPay Module for ZenCartv1.3x

loutka,

For secure callback you need to set the callback URL in the WorldPay control panel to:
https://<wpdisplay item="MC_callback"

You also need to change some code in incudes/modules/payment/worldpay.php at about line 128 from

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

to

      $callback_url = zen_href_link(FILENAME_WPCALLBACK, $zenId, 'SSL');
      $worldpay_callback = explode('https://', $callback_url);

Alan

11 Mar 2008, 11:23
#259
loutka avatar

loutka

New Zenner

Join Date:
Nov 2007
Posts:
49
Plugin Contributions:
1

Re: WorldPay Module for ZenCartv1.3x

duncanad:

loutka,

For secure callback you need to set the callback URL in the WorldPay control panel to:
https://<wpdisplay item="MC_callback"

You also need to change some code in incudes/modules/payment/worldpay.php

Hi Alan,
I have made those changes and now my callback doesn't work. :huh:

Before I was redirected back to our site, but with broken SSL, now I'm not redirested at all (just end on "Thank you, your payment was successful" page). :dontgetit

And Order is not processed in the Zen-Cart.

11 Mar 2008, 11:37
#260
loutka avatar

loutka

New Zenner

Join Date:
Nov 2007
Posts:
49
Plugin Contributions:
1

Re: WorldPay Module for ZenCartv1.3x

So there are two settings:

  1. Redirected back to our website with no SSL
  2. No redirection with working SSL

None of these is acceptable :no:

The site is live, with payments in test mode... Need to fixed this asap... No response from WP about callback or SSL...

Any other suggestions?