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

WorldPay Module version 2.0 - Support thread

Locked

Views: 215,935

Results 61 to 80 of 738
This thread is locked. New replies are disabled.
11 Dec 2008, 12:38 AM
#61
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

WorldPay Module version 2.0 - Support thread

Skip that entire conversation and use this module if you wish to add surcharges for credit cards (legal in UK, apparently not so elsewhere, and someone is really worried about it and has put warning s everywhere for non-uk users).

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1078

It works, it's stable (although the author says it's beta), it is pretty much I would have done except for automatically displaying the payment modules available, so I reckon I don't have to build it.

Philip.

11 Dec 2008, 12:58 AM
#62
doubletiger avatar

doubletiger

Zen Follower

Join Date:
Apr 2005
Posts:
199
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

Hi,philip_clarke

I think I will try to explain why I need this surcharge, so may help you to plan writing the codes.

I have protx on my site and it is the cheapest payment gateway in the UK so far. Worldpay is expensive, but I will use worldpay as alternative and backup. Because protx is not prefect and it always happen that some customers fail to pay via protx. I would prefer my customers use protx to pay if they can. If for some reasons they are unable pay via protx, worldpay can be put into use. Every time my customers pay via worldpay, I will loss some profit. that is why I would like to have surcharge on worldpay, to deter customes from choose worldpay without trying protx first. I will put some wording something like "We prefer customers pay by 1st payment option, and only use 2nd payment option when unable to pay by 1st payment option, since the worldpay is more expensive" in area say "please choose payment method". then customes still choose worldpay and pay by credit card, we can reasonable add surcharge on it. they have been warning beforehand.

although the different charge between protx and worldpay may be very tiny per transcation, but it will add up and become a large amount in long run.

no sure anyone will agree, but this is what I though.

thank you for your help and really appreciate it.

11 Dec 2008, 1:02 AM
#63
doubletiger avatar

doubletiger

Zen Follower

Join Date:
Apr 2005
Posts:
199
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

philip_clarke:

Skip that entire conversation and use this module if you wish to add surcharges for credit cards (legal in UK, apparently not so elsewhere, and someone is really worried about it and has put warning s everywhere for non-uk users).

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1078

It works, it's stable (although the author says it's beta), it is pretty much I would have done except for automatically displaying the payment modules available, so I reckon I don't have to build it.

Philip.

Just saw this post, I will try it and let you know the result. many thanks!

11 Dec 2008, 1:07 AM
#64
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

Re: WorldPay Module version 2.0 - Support thread

Yep all you have to do is put in worldpay in lower case in the module, instead of cc and it adds a bit of text that you can change, and voila, you have a surcharge just on worldpay. I have no idea about the difference in cost between the Gateways, but just check your terms & conditions for using both gateways before installing and going live.
Philip.

11 Dec 2008, 1:35 AM
#65
doubletiger avatar

doubletiger

Zen Follower

Join Date:
Apr 2005
Posts:
199
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

philip_clarke:

Yep all you have to do is put in worldpay in lower case in the module, instead of cc and it adds a bit of text that you can change, and voila, you have a surcharge just on worldpay. I have no idea about the difference in cost between the Gateways, but just check your terms & conditions for using both gateways before installing and going live.
Philip.

I replaced cc with worldpay, it appears working. However, there is a problem, the surcharge appears too soon, on the payment information page, where lists all of payment methods, the surcharge appears. This will confuse customers - they will think there is a surcharge regardless which payment method cusotmer use. What I want is only after customer select worldpay, then either surcharge appears or surcharge appears when cusotmer select worldpay and click "continue checkout".

do you know how to change the code to stop surcharge appears too soon?

thanks!

11 Dec 2008, 1:43 AM
#66
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

Re: WorldPay Module version 2.0 - Support thread

Doesn't the payment information page have a litte ***** next to worldpay and the words See Surcharge Fee Note Above. written underneath ?

You can also change the words in Admin using SURCHARGE Payment Description (HTML) so you could change it to Surcharge on worldpay payments only or something similar. Other than that, you should probably contact the original author of the module, because I think that it is exactly the correct place for surcharge information to appear.

11 Dec 2008, 1:47 AM
#67
doubletiger avatar

doubletiger

Zen Follower

Join Date:
Apr 2005
Posts:
199
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

philip_clarke:

Doesn't the payment information page have a litte ***** next to worldpay and the words See Surcharge Fee Note Above. written underneath ?

You can also change the words in Admin using SURCHARGE Payment Description (HTML) so you could change it to Surcharge on worldpay payments only or something similar. Other than that, you should probably contact the original author of the module, because I think that it is exactly the correct place for surcharge information to appear.

Yes, I can change these text but it will be still confusing customers. I will try to contact original author for help.

thank you for your help! really appreciate it.

12 Dec 2008, 5:15 PM
#68
chptif avatar

chptif

New Zenner

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

Re: WorldPay Module version 2.0 - Support thread

Hi,

I'm not sure if this is the right place to ask this, as in whether this is set in Zen Cart or in the WorldPay module, but I need to insert my VAT number into the notification email that goes out to the buyer on making a purchase and I'm struggling to find out how/where I can do that.

Is there an option to do something like this or does a file need to be hacked to make it happen? Any guidance is greatly appreciated.

(and my apologies if this is the wrong place for this query).

Thanks,
C.

12 Dec 2008, 6:45 PM
#69
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

Re: WorldPay Module version 2.0 - Support thread

Actually it's totally the wrong place, and I don't have a clue, I only have some general information, the "normal" way of adding the company details from this thread

http://www.zen-cart.com/forum/showthread.php?p=392615

is by plonking it in the address. Legally it's a requirement to have the number and VAT registration displayed on any invoices, credit notes or quotes, I'm not sure about emails (I wrote my own invoicing system so I've not need to set it up on own shop). This module

http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_55&products_id=89

does claim to add VAT things as well as check's a customer's VAT number against company (which may be taking things a bit too far).

Philip.

17 Dec 2008, 10:25 AM
#70
rued avatar

rued

Zen Follower

Join Date:
Oct 2005
Location:
Finland
Posts:
186
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

Just got time to test your module Philip, excellent work - well done. :)

But a few issues is there in it:

define for FILENAME_WORLDPAY is missing in admin, causing the file not to be found.

email template for email_template_wp_callback.html missing, giving big nasty error twice on top of sites when returning to shop:

ERROR: The email template file for (/home/.../public_html/shop/email/email_template_) or (/home/.../public_html/shop/email/email_template_wp_callback.html) cannot be found.

Modules core files and language files is in UTF-8, causing problems for most shops with t.ex. latin languages, since Zen Cart up to 1.3.8 is iso-8859-1 as default (will change in 1.4 to UTF-8).

17 Dec 2008, 10:48 AM
#71
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

Re: WorldPay Module version 2.0 - Support thread

I'll fix the things I can today.

I've noticed the UTF-8 problem before because the worldpay pay on an "undefined" test site has some garbled characters, I work by default in UTF-8, half of the module is old and may be in cp-1252, the email template issue is certainly a left over from the old module and currently I don't have a worldpay account to test things with which presents quite an interesting problem.

17 Dec 2008, 11:12 AM
#72
rued avatar

rued

Zen Follower

Join Date:
Oct 2005
Location:
Finland
Posts:
186
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

philip_clarke:

I don't have a worldpay account to test things with which presents quite an interesting problem.

That is for sure a problem. :)
Odd if WorldPay don't want to help you with that, when you help them with customers ...

Anyway, I tried converting all files into iso-8859 but still get characters messed up. Have noticed that the address shown i browser is https://select-test.worldpay.com/wcc/card (not the store address as normally) when we're returning to the shop, that is also odd - and might influence on characters?!

17 Dec 2008, 11:19 AM
#73
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

Re: WorldPay Module version 2.0 - Support thread

I applied multiple times for a test account and they never responded.

Someone let me borrow their account for a while but I have a way of faking a worldpay response anyway but then I got this far without having an account so it's not that bad. I could apply for an account with my own business banking set up, but I have no motivation to do so.

18 Dec 2008, 12:21 AM
#74
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

Re: WorldPay Module version 2.0 - Support thread

rued:

Just got time to test your module Philip, excellent work - well done. :)

But a few issues is there in it:

define for FILENAME_WORLDPAY is missing in admin, causing the file not to be found.

FILENAME_WORLDPAY is defined in 2.04 in the admin side but it's in

./admin/includes/languages/english/worldpay_response.php

the english bit probably raising the problem, since there is no template default system in admin, that is not possible to fix apart from copying over to whatever language you may be working with.

I'm just working through the others

18 Dec 2008, 2:06 AM
#75
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

Re: WorldPay Module version 2.0 - Support thread

rued:

Just got time to test your module Philip, excellent work - well done. :)

But a few issues is there in it:

define for FILENAME_WORLDPAY is missing in admin, causing the file not to be found.

The only solution for this one is to sort out a language for your own admin installation, as previously mentioned, there is a define for FILENAME_WORLDPAY in ./admin/includes/languages/english/worldpay_response.php so it's a matter of creating the folder and copying the file across, tell me and translate anything and I'll put an admin language file in the next release.

rued:

email template for email_template_wp_callback.html missing, giving big nasty error twice on top of sites when returning to shop:

That was caused by the lack of an email template for HTML messages, strangely that shouldn't have got through the system as it must be very configuration specific as although I can trace it (and have fixed it), I've never seen that myself and my default test user is set to receive HTML emails. My guess is that your version is displaying the error->messagestack and for some reason mine has this disabled to the "public". That's curious as I've installed this module on at least 9 servers for people from this forum and I've not seen it on any installation.

rued:

Modules core files and language files is in UTF-8, causing problems for most shops with t.ex. latin languages, since Zen Cart up to 1.3.8 is iso-8859-1 as default (will change in 1.4 to UTF-8).

I have saved the templates into IS0-8859-1 BUT I think it will make no difference. I did a byte count of the pages and in UTF-8 and ISO-8859-1 they came up identical and I can see massive implications for the future (not just in this module). My theory is that in this case when the page is pulled from the shop and displayed at WorldPay, then worldpay is setting a header for UTF-8 but the shop's main text is in ISO-8859-1 and so some characters are getting mangled. I would need a VOLUNTEER (I do not need direct access to a merchant account or to admin or to having the site in test mode as I can fake all that) to prove this, but the big implications are that for years people have been editing the pages and storing all the information in a MySQL Latin-1 charset database (or getting paypal info back into the DB as a windows charset) and all that information is going to be pulled out in ZC 1.4 and displayed on a UTF-8 page.

Anyway, the fix for the email issue has been done along with the conversion to ISO... though I don't think it will make much of a difference. It's been submitted to the downloads page, but early adopters can get it here:

http://exploitingIT.co.uk/WorldPay_ZC1.3.x_v2.05.zip

I shall await a volunteer to see if there's anything I can do about the character set display.

Philip.

18 Dec 2008, 7:38 AM
#76
rued avatar

rued

Zen Follower

Join Date:
Oct 2005
Location:
Finland
Posts:
186
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

philip_clarke:

The only solution for this one is to sort out a language for your own admin installation, as previously mentioned, there is a define for FILENAME_WORLDPAY in ./admin/includes/languages/english/worldpay_response.php so it's a matter of creating the folder and copying the file across

In ./admin/includes/boxes/extra_boxes/worldpay_response_customers_dhtml.php you have defined the db table, also FILNAME define could go here then. Or best, all defines moved into new files in ./includes/extra_datafiles/ and ./admin/includes/extra_datafiles/

That's curious as I've installed this module on at least 9 servers for people from this forum and I've not seen it on any installation.
Was this maybe English sites/language then? My workaround was to copy and rename ./email/email_template_checkout.html into ./email/email_template_wp_callback.html AND ./email/no/email_template_wp_callback.html

I did a byte count of the pages and in UTF-8 and ISO-8859-1 they came up identical
Not sure that you should see a different, as long as there isn't any special characters (like å,ø,æ,ä,ö etc.).

My theory is that in this case when the page is pulled from the shop and displayed at WorldPay, then worldpay is setting a header for UTF-8 but the shop's main text is in ISO-8859-1 and so some characters are getting mangled.
I think you're right on this one, but not sure if I can help you debug it as I don't have any WorldPay account myself - just helping someone out with it. But I'll see if I can arrange something for you, and if so PM you.

but the big implications are that for years people have been editing the pages and storing all the information in a MySQL Latin-1 charset database (or getting paypal info back into the DB as a windows charset) and all that information is going to be pulled out in ZC 1.4 and displayed on a UTF-8 page.
ZC 1.4 will hopefully come with a migration tool to overcome this issue, if not each and one having special characters stored would need to convert their database manually into utf8 collation. Not really a hard thing to do, can also be done directly in phpMyAdmin. Done it for some Joomla! sites, migrated from 1.0 to 1.5 - where the extensions wasn't supported by the migration tool.

18 Dec 2008, 8:47 AM
#77
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

Re: WorldPay Module version 2.0 - Support thread

rued:

In ./admin/includes/boxes/extra_boxes/worldpay_response_customers_dhtml.php you have defined the db table, also FILNAME define could go here then. Or best, all defines moved into new files in ./includes/extra_datafiles/ and ./admin/includes/extra_datafiles/

Ahh, but I was working from the paypal template using

/admin/includes/languages/english/paypal.php

so that would be the correct place in theory. It could go into ./admin/includes/extra_datafiles/ but that would kill the ability to translate it into a different language as that's a global load.

rued:

Was this maybe English sites/language then? My workaround was to copy and rename ./email/email_template_checkout.html into ./email/email_template_wp_callback.html AND ./email/no/email_template_wp_callback.html

The sites were English language but I suspect something else is different in the configuration, I debugged it from your error message which gave me the page ./includes/functions/functions_email.php

and this:

    if (!file_exists($template_filename)) {
      if (isset($block['EMAIL_TEMPLATE_FILENAME']) && $block['EMAIL_TEMPLATE_FILENAME'] != '' && file_exists($block['EMAIL_TEMPLATE_FILENAM
E'] . '.html')) {
        $template_filename = $block['EMAIL_TEMPLATE_FILENAME'] . '.html';
      } elseif (file_exists($template_filename_base . str_replace(array('_extra','_admin'),'',$module) . '.html')) {
        $template_filename = $template_filename_base . str_replace(array('_extra','_admin'),'',$module) . '.html';
      } elseif (file_exists($template_filename_base . 'default' . '.html')) {
        $template_filename = $template_filename_base . 'default' . '.html';
      } else {
        $messageStack->add('header','ERROR: The email template file for (' . $template_filename_base . ') or (' . $template_filename . ') c
annot be found.','caution');
        return ''; // couldn't find template file, so return an empty string for html message.
      }
    }

So there should be something on your system displaying the messagestack whereas on the other systems it's probably turned off. It only needs one file on the system to be found though, so I just copied it to email_template_wp_callback.html. It's a pity but I can't add the wpdisplay box to the email as it's a worldpay pull that puts it on the page.

rued:

Not sure that you should see a different, as long as there isn't any special characters (like å,ø,æ,ä,ö etc.).

I think you're right on this one, but not sure if I can help you debug it as I don't have any WorldPay account myself - just helping someone out with it. But I'll see if I can arrange something for you, and if so PM you.

all that really needs doing, is examining what headers worldpay sends out when it pulls the page through, and a start would be Mozilla 3 and Tools > page info. I could go onto a friend's website or find an un-patched one and break into it, in "test mode" but I thought I'd ask for volunteers first.

rued:

ZC 1.4 will hopefully come with a migration tool to overcome this issue, if not each and one having special characters stored would need to convert their database manually into utf8 collation. Not really a hard thing to do....

Not hard, but

  1. Time consuming
  2. Beyond the understanding of most basic shop administrators

The forums shall be filled with people claiming ZC is broken because of "the squiggles".

29 Dec 2008, 3:13 PM
#78
corris avatar

corris

New Zenner

Join Date:
Dec 2008
Posts:
2
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

Not sure if this is the right place --> ZC 1.3.7 - php4 (sorry, other apps require) - worldpay mod 1.4 (I'm very olde worlde, I know)

This has worked fine for yonks and yonks. Suddenly, worldpay or 'bye now' buttons replaced by 'contact me' buttons (ie worldpay disappears to the shopper)
Still active in admin payments module.

Worlpay say the site is still fine for payments and not their problem (they would though)

Any ideas why a working shop suddenly becomes an unworking shop (and surprisingly, I'll also say I've not changed anything) ????

THANKS

29 Dec 2008, 4:32 PM
#79
corris avatar

corris

New Zenner

Join Date:
Dec 2008
Posts:
2
Plugin Contributions:
0

Re: WorldPay Module version 2.0 - Support thread

Re above

I chickened out - moved to a php5 server.

Removed old worldpay module + installed new worldpay module 2.0.4

No difference ---> shop has no buy buttons, just a contact me which directs to my contact me page

So, tis not php or module version me thinks ---> but, what else is there for me to have lost my shop?

29 Dec 2008, 6:05 PM
#80
philip_clarke avatar

philip_clarke

Suspended

Join Date:
Sep 2008
Posts:
608
Plugin Contributions:
3

Re: WorldPay Module version 2.0 - Support thread

You've been hacked. I you didn't do anything, then someone else did. Private message me and I'll have a look around, it's not the module but something is amiss.