Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

WorldPay.php,v4.1 Beta 2003/01/12 22:00:00


Guest

Recommended Posts

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

Link to comment
Share on other sites

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

Ian-san

Flawlessnet

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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:

Ian-san

Flawlessnet

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...