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

WorldPay Module for ZenCartv1.3x

Locked

Views: 137,250

Results 21 to 40 of 464
This thread is locked. New replies are disabled.
7 Jul 2006, 9:03 AM
#21
pauls avatar

pauls

Zen Follower

Join Date:
Feb 2006
Location:
UK
Posts:
300
Plugin Contributions:
0

WorldPay Module for ZenCartv1.3x

Yes I have installed a admin mod, in fact I installed the 'sales reports' modification, however I took it out again and still had the same problems. Of course though, that modification could have made changes to the order.php so off to see if I can find if that is the case. Due to your information that this module does not affect the files in Admin, this is not the place for my postings any longer, thank you for the clarification, now I will try to find a solution elsewhere.

Thanks for a great WorldPay contrib Alan, works flawlessly.

duncanad:

Have you installed any other mods such as one of the Admin Tools mods - or done some customising of your own that may have affected this file?

Hope this helps,

Alan

7 Jul 2006, 9:35 PM
#22
michaelchild avatar

michaelchild

New Zenner

Join Date:
May 2006
Posts:
21
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

i have installed a new shop installed to try all posabilitys it is https://www.surewin.co.uk/onlineshop
i get the same feed back no matter what. order canceled.

8 Jul 2006, 10:25 AM
#23
michaelchild avatar

michaelchild

New Zenner

Join Date:
May 2006
Posts:
21
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

as i said befor i have installed a new shop and i keep getting the same problem. so i need some sort of server setting changing, does it have anything to do will ssl?

8 Jul 2006, 11:04 AM
#24
pauls avatar

pauls

Zen Follower

Join Date:
Feb 2006
Location:
UK
Posts:
300
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

Alan, there is a slight bug with the new information added. Notably, if you go through the order process and then opt to cancel at the last stage, the information that comes back could be a bit misleading to the customer, it simply shows the 'Test' page info. Like this.

... 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.

Specifically the line that is out of context here is
This is a TEST TRANSACTION. No money has changed hands

Not really a problem, just that i had noticed it.

9 Jul 2006, 4:07 PM
#25
rikki avatar

rikki

New Zenner

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

Re: WorldPay Module for ZenCartv1.3x

Hi folks,

I'm just back from holiday and decided to install the updated WP payment module that I had asked Duncan about a month back.

I followed all the instructions as best I could on the WP admin site, uploading the module via FTP, setting up the ZC admin module payment pages then tried to go through and do a test run but when I click the last PROCEED type button it goes to WP and I get:


Secure Payment Page
Sorry, there was an error in processing this transaction:
The information sent from the merchant's site is invalid or incomplete. Please send the following information to the merchant:
The transaction cannot be processed due to one or more of the following:

the merchant account is suspended
the currency you selected is not supported
the authorisation mode is incorrect
test mode is unavailable
the installation is not live

Server information 09/Jul/2006 16:03:03 Server ID mggwcc8a (WPReq-2102514)

I'm a bit annoyed that for a big outfit like WP they say "due to ONE or MORE of the following" then list of a load of things, surely they bloody know which one or ones it is!

I am helping a friend install this and its the first time Ive used ZC or indeed any Ecommerce package so Im at a loss as to what to do myself. The WP account is brand new, I have gone in and copied and pasted the bits required for the payment module call back etc but I dont know if its suspended, live or otherwise.

Can anyone give me any advice, this is a brand new WP account so Im not sure the steps needed to get it to play ball.

Many thanks,

Rikki

10 Jul 2006, 10:57 AM
#26
michaelchild avatar

michaelchild

New Zenner

Join Date:
May 2006
Posts:
21
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

Please help I am still in the dark about what is happening to my site in regards to the callback response from Worldpay. Let me start at the beginning, I have installed the latest version of Zen-Cart, and the latest WP Module. I have followed the instructions exactly i.e. installed all the bits where they need to be and set the callback to http://<wpdisplay item=MC_callback>, along with callback enabled and callback response both been ticked.

The first point is my shop is still in test mode and needs to be until the shop is working this isn’t a problem! The problem is When I go through to a payment page and enter the test details (or actual details) and press the make payment my shop records I cancellation, not a payment accepted!

E.g.
... 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:

To try and narrow the problem down I opened the tpl_wpcallback_default.php
shop/includes/templates/template_default/templates/tpl_wpcallback_default.php
and changed the transStatus from
if($transStatus == "Y")
to
if($transStatus == "")
and then ran another test payment.

This worked I a way, the payment was accepted, and an order in zen-card was created!

e.g.
Thank You! We Appreciate your Business!
Response from WorldPay:
This is a TEST TRANSACTION. No money has changed hands
Please check your contact details. If there are any errors please contact us immediately.
Tel:
Email:
Your payment details are detailed below. If you have experienced any problems with your payment please contact WorldPay immediately.
has been debited from your card.
Our ref:
Your WorldPay Transaction ID is
You will find WorldPay contact information here
Your Order Number is: 10

What this has shown me is that not only is the transStatus not been received or sent, but neither is the amount, the transaction ID, Our ref, or the Worldpay banner that should appear. I have put the transStatus back to if($transStatus == "Y") now, and my shop is still in test mode

Does anyone have any idea why my shop isn’t seeing the Worldpay response?
is it sending it to a different place than where the shop is looking?
If any one needs any settings I’m using or anything please ask!
My shop URL is http://www.surewin.co.uk/shop

P.S. I have also tried installing a new shop with out any modifications and I still get the same problem! And my shop is NOT in maintenance mode!

10 Jul 2006, 11:52 AM
#27
pauls avatar

pauls

Zen Follower

Join Date:
Feb 2006
Location:
UK
Posts:
300
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

I have just received the correct amount from the worldpay test. Yes it reports back at the shop that no money has exchanged, because it hasn't.

The module appears to work fine from the customers perspective here is the email

Transaction Confirmation
Please retain for your records
This is a test transaction -
no real money is involved.
	
Thank you

Your transaction has been processed on behalf of Doncaster Racing Publications Limited.
Transaction details:

Transaction for the value of: GBP 51.50
Description: Purchase from Surewin Online Shop
From: Doncaster Racing Publications Limited t/as Surewin
Merchant's cart ID: 0m0hajetufclev1o62l5uuseq5
Authorisation Date/Time: 10/Jul/2006 11:49:08
Transaction ID: 183071175
This is not a tax receipt.
If you have a query about your order

This confirmation only indicates that your transaction has been processed successfully. It does not indicate that your order has been accepted. It is the responsibility of Doncaster Racing Publications Limited to confirm that your order has been accepted, and to deliver any goods or services you have ordered.

If you have any questions about your order (including refunds, delivery status, wanting to cancel your order), please email Doncaster Racing Publications Limited at: [email protected], with the transaction details listed above.
Thank you for shopping with Doncaster Racing Publications Limited
Your transaction has been processed by WorldPay on behalf of Doncaster Racing Publications Limited.
10 Jul 2006, 12:45 PM
#28
michaelchild avatar

michaelchild

New Zenner

Join Date:
May 2006
Posts:
21
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

Pauls:

I have just received the correct amount from the worldpay test. Yes it reports back at the shop that no money has exchanged, because it hasn't.

The module appears to work fine from the customers perspective here is the email
[CODE]Transaction Confirmation
Please retain for your records
This is a test transaction -
no real money is involved.

Thank you

Your transaction has been processed on behalf of Doncaster Racing Publications Limited.

I know that no money is involved and that worldpay are sending emails out fine. the trouble is that my shop doesn't know that anything has gone through! even in test mode the transaction should show up successfull, and create an order in zen-cart! my shop is just reporting a cancellation everytime!

if i turn the shop to live it does the same! I've already had one customer make an order when it was in live mode, they got the cancellation message, the products did not leave there shopping cart and zen didn't report an order. The customer thinking the transaction didn't go through did it again, i had to refund it and ask him what he orded because i had no record of it, because like i said the shop thinks that you have cancelled the order, despite worldpay actually taking the money

the cancellation screen you get when it called cack into the shop from world pay should only happen if you click cancell order in the worldpay payment screen!

10 Jul 2006, 1:21 PM
#29
pauls avatar

pauls

Zen Follower

Join Date:
Feb 2006
Location:
UK
Posts:
300
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

I had a similar issue to this using PayPals IPN, there can be many factors as I found out, the thread grew into a life of its own with peoples various issues. Your issue sounds similar and my particular solution was to re-upload the IPN_Main_handler.php file, (it was corrupted) but I think only PayPal uses this file.

It is very difficult to diagnose what is wrong so I will simply post shots of my settings within ZC and within the worldpay module, so you can verify that yours are the same as mine perhaps. If they are then, I will not be of much use to you, as always when something works, you tend to leave it alone, and my worldpay has fortunatley for me worked. Perhaps somoeone else can help you and i am sure you will find a solution. Here are my settings.

ZC settings

WP settings

Hope they help.

11 Jul 2006, 5:23 AM
#30
cplam999 avatar

cplam999

New Zenner

Join Date:
Jun 2006
Posts:
17
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

The modules works fine for me, it is great!:thumbsup:

by the way, I have a suggestion.
The tansaction ID is not record in the admin page,
sometimes I get confuse.. I don't know which order# related to which transaction#..

If in can record order# and transaction ID like PayPal IPN does,
It is perfect!

:P

Anyway, thank you !

11 Jul 2006, 12:26 PM
#31
michaelchild avatar

michaelchild

New Zenner

Join Date:
May 2006
Posts:
21
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

Does The worldpay moduel need ssl installing on the server i'm using?
And does any one know if its possible that the callback responce is been sent
some where different to where the shop is trying to pick it up?

12 Jul 2006, 9:16 AM
#32
michaelchild avatar

michaelchild

New Zenner

Join Date:
May 2006
Posts:
21
Plugin Contributions:
0

Re: WorldPay Module for ZenCartv1.3x

I have fixed the problem by changing the shop/includes/templates/template_default/templates/tpl_wpcallback_default.php from

if(isset($HTTP_POST_VARS['transId'])) {$transId = $HTTP_POST_VARS[transId];}
if(isset($HTTP_POST_VARS['transStatus'])) {$transStatus = $HTTP_POST_VARS[transStatus];}
if(isset($HTTP_POST_VARS['cartId'])) {$cartId = $HTTP_POST_VARS[cartId];}
if(isset($HTTP_POST_VARS['name'])) {$name = $HTTP_POST_VARS[name];}
if(isset($HTTP_POST_VARS['address'])) {$address = $HTTP_POST_VARS[address];}
if(isset($HTTP_POST_VARS['postcode'])) {$postcode = $HTTP_POST_VARS[postcode];}
if(isset($HTTP_POST_VARS['country'])) {$country = $HTTP_POST_VARS[country];}
if(isset($HTTP_POST_VARS['tel'])) {$tel = $HTTP_POST_VARS[tel];}
if(isset($HTTP_POST_VARS['email'])) {$email = $HTTP_POST_VARS[email];}
if(isset($HTTP_POST_VARS['authAmountString'])) {$authAmountString = $HTTP_POST_VARS[authAmountString];}
if(isset($HTTP_POST_VARS['cardType'])) {$cardType = $HTTP_POST_VARS[cardType];}
if(isset($HTTP_POST_VARS['testMode'])) {$testMode = $HTTP_POST_VARS[testMode];}
// if(isset($HTTP_POST_VARS['transTime'])) {$transTime = $HTTP_POST_VARS[transTime];}

to

if(isset($_POST['transId'])) {$transId = $_POST[transId];}
if(isset($_POST['transStatus'])) {$transStatus = $_POST[transStatus];}
if(isset($_POST['cartId'])) {$cartId = $_POST[cartId];}
if(isset($_POST['name'])) {$name = $_POST[name];}
if(isset($_POST['address'])) {$address = $_POST[address];}
if(isset($_POST['postcode'])) {$postcode = $_POST[postcode];}
if(isset($_POST['country'])) {$country = $_POST[country];}	
if(isset($_POST['tel'])) {$tel = $_POST[tel];}
if(isset($_POST['email'])) {$email = $_POST\[email];}
if(isset($_POST['authAmountString'])) {$authAmountString = $_POST[authAmountString];}
if(isset($_POST['cardType'])) {$cardType = $_POST[cardType];}
if(isset($_POST['testMode'])) {$testMode = $_POST[testMode];}

// if(isset($_POST['transTime'])) {$transTime = $_POST[transTime];}

It works now! if any one knows of a problem which this change of code can course please tell me, but after testing it a number of times is seems to be fine.

12 Jul 2006, 2:10 PM
#33
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: WorldPay Module for ZenCartv1.3x

I received this request from a client today...

I had to switch off currencies because the order is passed on to Worldpay in the currency selected, and Worldpay is set up to deal only with GBP. Can we make it so that the currency displayed is whatever the user chooses, but the currency actually passed on to Worldpay is GBP?

Is it possible?

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

14 Jul 2006, 7:00 PM
#34
duncanad avatar

duncanad

Zen Follower

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

Re: WorldPay Module for ZenCartv1.3x

Hi everybody!

Just back from a last minute break in sunny Spain hence my absence from this thread. My has this thread been busy! I'll try to get round to responding as best I can to the unresolved issues over the next few days.

I'll answer Ryk first because its easy.

WorldPay will only accept transacions in currencies that your account is set up to accept. When your account is originally set up by WorldPay this will be in the currency that you have nominated - in your case Sterling. If you require to make transactions in any other currency you will need to ask WorldPay to set these currencies up for you in your account. There is a set up fee charged for each additional currency you request. I think this is around £50 per currency but best check this with WorldPay.

You need to be sure that offering a particular currency will generate sufficient extra business to justify the initial outlay. Another thing to bear in mind is that if you allow transactions in, for example, US dollars the proceeds of any sale in Dollars will be deposited into your account in your home bank accounts currency ie Sterling. You, the merchant, pay the currency conversion fees from US Dollars to Sterling. If you only offer transactions in Sterling then the customer's credit card issuer charges the customer the currency conversion fees when charging the Sterling transaction to his account in Dollars.

Tricky one to evaluate.

Hope this helps,

Alan

workingIT.co.uk
working IT for business

14 Jul 2006, 7:19 PM
#36
duncanad avatar

duncanad

Zen Follower

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

Re: WorldPay Module for ZenCartv1.3x

Ryk,

Actually I've just re-read your post and realised that I have missed the point a bit. What your customer is asking is that prices be DISPLAYED in the store in the currency of the customer's choice but that all transactions take place in Sterling, ie the payment module sends the transaction details to WorldPay in Sterling.

I suppose this should be possible but would need to be thought out in detail before implementing. The danger is that the customer may think they are being deceived in that the actual costs charged to his/her card will not be as stated on the payment pages.

There are two possible ways round this:

  1. A prominent statement somewhere in the payment pages to the effect that his/her card will be charged in sterling at the appropriate exchange rate and not in the currency displayed. Other currency prices will therefore be approximate only since the merchant has no control over exchange rates at the time the transaction is charged to the customer's card.

  2. Amend the final payment page to show both the current (approximate) customer's currency price AND the Sterling value that will be charged to the card.

Not sure that the confusion that might ensue would be worth the effort - but maybe others feel differently. Personally I feel that it is more transparent if the transaction takes place in the currency displayed. I'm not sure if WorldPay would take a view on this.

Regards,

Alan

workingIT.co.uk
working IT for business

14 Jul 2006, 7:38 PM
#37
duncanad avatar

duncanad

Zen Follower

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

Re: WorldPay Module for ZenCartv1.3x

Paul,

It was great thanks, but ... touched down at Glasgow today at 12:40, got home to find 250 emails waiting for me. It's now 20:25 on Glasgow Fair Friday and it feels like I've never been away. Holidays were ever thus!

Had a quick look at your thread but want to catch up on some of the other issues first. Actually I've got a commission to rebuild one of my customer's stores from scratch and I'm thinking of taking a long hard look at the whole WorldPay module. The current module was originally ported over from OS Commerce (oops! am I allowed to mention the 'other' project) by Network Dad and has gone through a few tweaks since then until I seem to have become it's keepr by default. I think it probably needs a new look from the ground up and I'm hoping my new project will provide the impetus for me to do just that. That might be the time for me to look at your issue assuming you have not cracked it by then yourself. My new project is due to run through August which gives an idea of timescales.

Regards,

Alan

workingIT.co.uk
working IT for business

14 Jul 2006, 10:30 PM
#38
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: WorldPay Module for ZenCartv1.3x

Thanks Alan - it was as I expected but as the client himself set up the WorldPay end, I wanted to be sure of my thinking.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

18 Aug 2006, 9:56 PM
#39
rikki avatar

rikki

New Zenner

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

Re: WorldPay Module for ZenCartv1.3x

Hi folks,

I've got the WP module setup and running fine but it keeps displaying its in test mode for some reason?! The payments are going through but it displays to the user :

"Response from WorldPay:

This is a TEST TRANSACTION. No money has changed hands

Please check your contact details. If there are any errors please contact us immediately.

...

Your payment details are detailed below. If you have experienced any problems with your payment please contact WorldPay immediately.

£6.99 has been debited from your Mastercard card.
Our ref: eb4a8fa466c903b60684a7facaf47610
Your WorldPay Transaction ID is 190323799

You will find WorldPay contact information here
Your Order Number is: 10"

and my bank account shows the payment having gone through :

"16/08/2006 17/08/2006 5970 WRAFTYBITZ INTERNET £6.99 "

Any ideas on this puzzler?

Thanks,

Rikki

19 Aug 2006, 10:36 AM
#40
duncanad avatar

duncanad

Zen Follower

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

Re: WorldPay Module for ZenCartv1.3x

Rikki:

and my bank account shows the payment having gone through :

Rikki,

Do you mean that you have put through a 'test' transaction in 'live' mode using your own credit card to pay for the purchase and the quote above refers to a debit from your card acount rather than a credit to your account from WorldPay? Credits from WorldPay are paid weekly, four weeks in arrears, so will not have reached your bank account yet.

Have you requested WorldPay to make your WorldPay account live?

To do this you should have forwarded to WorldPay a completed Activation Request Form. WorldPay will then revue the site and if everything is OK they will activate the site at which point you should set the transaction mode in Admin>Modules Payment>Credit Card via WorldPay to '0' and then make a small value purchase using your own valid card. If everything is working properly the transaction should go through successfully and there should be no 'Test Transaction' message on the callback response page. You can then refund your card via the WorldPay Control Panel and if you ask WorldPay nicely they will refund your WorldPay account the transaction fees for this 'test' transaction.

I don't know what happens if you attempt to put through a 'live' transaction before WorldPay has activated the account - I've never tried. If this is what you have done perhaps you have just found out.

I'm just guessing here so could you detail exactly the status of the account and what your Admin settings are.

Regards,

Alan

workingIT.co.uk
working IT for business