Guest Posted January 16, 2003 Share Posted January 16, 2003 Hello i recently installed the WorldPay module that has the following header/comment: /* $Id: worldpay.php,v4.1 Beta 2003/01/12 22:00:00 Author : Graeme Simms ([email protected])/Graeme Conkie ([email protected]) Title: WorldPay Payment Module V4.0 Beta osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ We found a problem with the different currencies. We would put pounds UK currencies and when we would arrive at the WorldPay Credit card entering part on WorldPay's SSL server we noticed that the AMOUNT is in USD BUT has the Currency sign of POUNDS which is pretty bad because that is sent to the email of the buyer!!! We found that the hidden Amount field (whatever currency you are in) on the checkout page is ALWAYS in USD. We tracked the code to here in the WorldPay.php: tep_draw_hidden_field('amount', number_format($order->info['total'],2,'.','')); It should be multipled by currency shouldn't it? Anyone could help us on solving this problem? I think we are running on the Daily CVS Snapshot (01/14/2003) but i'm not 100% sure it could be (01/13/2003) or (01/12/2003) we installed it very recently. I've been reading the Checkout process has been changing .. do I have the latest version? should I install a more recent module for WorldPay? Any advices are welcome :) Qjahe Quote Link to comment Share on other sites More sharing options...
scottymcloo Posted January 16, 2003 Share Posted January 16, 2003 I have fixed this problem. It can be downloaded from http://www.irishsportscorp.com/wpupdate.zip and test. Once you confirm this is working, I will post the mod to the contributions section. This is now on my test site, so it can be tested there also www.irishsportscorp.com Graeme Quote Link to comment Share on other sites More sharing options...
Guest Posted January 16, 2003 Share Posted January 16, 2003 Hi! Thanks for you quick response! Yes it fixed it Thank you very much! :D Qjahe Quote Link to comment Share on other sites More sharing options...
Guest Posted January 16, 2003 Share Posted January 16, 2003 Hi me agian! :lol: I was wondering if it was in your plans to add the MD5 feature to your mod eventually? Qjahe :shock: Quote Link to comment Share on other sites More sharing options...
scottymcloo Posted January 16, 2003 Share Posted January 16, 2003 Hi Yes, I will implement the MD5 feature - I need to understand how it all works first ;-) It will be a couple of weeks before I do it though - I need to get my own site into some sort of shape. Graeme Quote Link to comment Share on other sites More sharing options...
Ian-San Posted January 16, 2003 Share Posted January 16, 2003 Graeme I have noticed that the pre-november WP modules do not show the Payment Method at the end of the customers confirmation email. Does this happen with your version? I am trying to understand if this is a fault with the old modules or a general fault with using WP. Thanks Quote Ian-san Flawlessnet Link to comment Share on other sites More sharing options...
Guest Posted January 16, 2003 Share Posted January 16, 2003 I was wondering if either of you had the chance of installing the following module? http://www.oscommerce.com/community/contri...ions,877/page,4 I downloaded it but i'm not sure how to install it? :oops: anyone could give me some pointers? Qjahe :shock: Quote Link to comment Share on other sites More sharing options...
scottymcloo Posted January 16, 2003 Share Posted January 16, 2003 Hi Ian, I received a mail about this problem in V3 of the Worldpay module earlier today. My module does not have this problem, and sends the correct payment type in the e-mail. I have not had a chance to look at V3b to see if I can see the problem. Regards Graeme Quote Link to comment Share on other sites More sharing options...
Ian-San Posted January 16, 2003 Share Posted January 16, 2003 Graeme Many thanks - your reply put me in the right direction. If anyone is using a pre-November WorldPay snapshot, and want to see the payment type in the customer email, just change this line in worldpay.php: $this->code = 'Worldpay'; to this: $this->code = 'worldpay'; Yep, just the capital 'W' - it was a stupid mistake. :cry: Quote Ian-san Flawlessnet Link to comment Share on other sites More sharing options...
scottymcloo Posted January 17, 2003 Share Posted January 17, 2003 I've uploaded version 1.3 of this module which fixes a problem with carts using more than 1 currence. This also adds addiitonal features of sorting payment types and adding the current status (pending, delivered and processing) to all orders when complete - applies to snapshots after 14/01/2003. Graeme Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.