WorldPay module

Posts: 5
Joined: 09/25/2007

I've made a start on a WorldPay module, based around the 2Checkout module.

It's in a fairly rough state right now, but has at least enough marbles to submit a payment request to the WorldPay test server, and can handle a (faked) GET request confirming payments. I haven't got a real live WorldPay account to test it with yet, so once I get that through I'll be handling some more stuff in it.

One caveat is that the currency is hardcoded to be GBP - I'm sure there's a way to make this customer-configurable. I thought that the country array might have the currency code in it, but it doesn't. Is there something that will return the currency code given the country code in Übercart?

Grab it from http://www.gjcp.net/uc_worldpay.tar.bz2

Please tell me where I can improve it - this is my first crack at a Drupal module, never mind an Übercart module!

Gordon

Posts: 2008
Joined: 08/07/2007
AdministratoreLiTe!

At this point, Ubercart only supports one currency for a site. You can get that currency using

<?php
  variable_get
('uc_currency_code', 'USD');
?>

This setting is found in Format settings under Store settings.

Posts: 95
Joined: 08/07/2007
Uber DonorBug FinderEarly adopter... addicted to alphas.Spreading the word - Ubercart for president.

Hello. I am helping a client in the Far East build a site with UC and he has a Worldpay account. He is very interested in the module you are working on, and has authorized me to volunteer his Worldpay account for testing if it would help. Can you give me an update on the status of the module? Thanks so much.

--
Posts: 17
Joined: 09/27/2007

I am also very interested in the development of this module.

Do you have any updates????

Thank, Matt

Posts: 4
Joined: 11/21/2007

Are there any updates on this module?

Posts: 36
Joined: 08/16/2007

Your dev version seems unavailable. Could you post it on the ubercart site or give a working url for it?

Posts: 36
Joined: 08/16/2007

you guys might be interested

http://www.ubercart.org/contrib/3979