20 replies [Last post]
paul's picture
Offline
Joined: 12/16/2007
Juice: 3
Was this information Helpful?

It seems that paypal Website Payments Pro (UK) uses a slightly different API to the US version. The ubercart module seems to be specifically US.

Is any one else working on patch / conversion for the UK version?

Differences include:
1) Different card types
2) new header Request_ID
3) new authentication method (uses Partner, User, Vendor, Pwd rather than user, pwd and signature)
4) some of the optional and required transaction name-value pairs have changed....

I am working on a patch/update for the uc_paypal.module and for the uc_credit.module to incorporate these changes.

Is there anyone else who wants to compare notes, or share their experiences so far?

Cheers
Paul Smith

realworksmedia's picture
Offline
Joined: 10/23/2007
Juice: 107
Ubercart paypal payments pro uk

I would love to see Ubercart integrated with Payments Pro in the UK.

I can't offer any coding expertise but would be please to test and contribute to a bounty for this.

www.realworksmedia.com

Mark B's picture
Offline
Joined: 10/27/2008
Juice: 47
Did you get anywhere with this?

I am also stuck with Paypal Website Payments Pro (UK) as a payment gateway, and Ubercart looks like the best cart module for Drupal by a fair margin.

I'm a pretty competent Drupal module developer, so will be writing my own module to make this integration work, but if you had made any progress on it already (or even better, finished writing one!) that could give me a headstart it would be much appreciated.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Did you get anywhere with this?

Hey Mark, I'd be more than happy to get some help w/ the core PayPal module. If you think we can make some minor adjustments to that so it works elsewhere, I'd be all about it.

Mark B's picture
Offline
Joined: 10/27/2008
Juice: 47
Harder than it looks!

I've customised the uc_credit.module and uc_paypal.module files to support direct credit card payments via Paypal Website Payments Pro (UK), and this turned out to be fairly straightforward. However, there's a whole bunch of additional functionality (delayed payments, credits, PayPal Express Checkout, etc) in the PayPal module which also needs to be ported for a complete implementation. As we don't use any of these for our business, I can't really justify spending the time it would take to fully port these and test them thoroughly.

I've attached my customised versions of the modules, which will be a good head start for anyone wanting to take this further.

In a nutshell though, the changes are:
Credit Module

  • Change the list of supported cards to Visa, Mastercard, Solo, Maestro (Switch)
  • Add icons to the images directory for the new card types

PayPal Module

  • Change the config form to take a Vendor, User and Password instead of API Username, Password and Signature
  • Change the URLs payment requests are posted to
  • Change most of the parameter names in uc_paypal_uk_wpp_charge
  • Change the parsing of the response in uc_paypal_uk_wpp_charge

Hope this is of some help to you Ryan! Sorry I can't devote the time needed to to a complete UK module.

AttachmentSize
uc_credit_uk.tar.gz 34.92 KB
uc_paypal_uk.tar.gz 16.87 KB
Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Harder than it looks!

No problem! Thanks for posting what you have. It's definitely helpful. Smiling

cg_
cg_'s picture
Offline
Joined: 04/05/2009
Juice: 2
Hello, I was wondering if

Hello,

I was wondering if any further progress had been made in intergrating PayPal Payments Pro UK into Ubercart?

I am in the process of rebuilding my site in Drupal and would love to be able to use Ubercart, but I am using PPPUK and would need this to function properly. From this thread it looks as though it is almost there but not quite...

Does anyone have any more info at all?

Many thanks in advance,

Chris

Axel_Pressbutton's picture
Offline
Joined: 11/30/2008
Juice: 123
_

Is there anything similar to this that works with Drupal 6.10 and Ubercart 2.0-beta5?

glowkeeper's picture
Offline
Joined: 02/23/2009
Juice: 32
Re: _

Subscribing for any Drupal 6.x Ubercart 2.x Paypal Payments Pro UK news.

I'm just about to go live with my website www.cosyheart.com. However, I still need to add payment processing gateways - Paypal Website Pro would clearly be a decent option (if somewhat expensive - 3.4%!).

I'm also a capable developer, although I've not done any Drupal php work as yet. But if anyone can give me a head start I'd gladly work on getting the UK port completed.

As an aside, what other credit card processing options are people using for the UK? Click and Buy? WorldPay?

martinjbaker@drupal.org's picture
Offline
Joined: 07/27/2009
Juice: 23
just checking

Might be a dumb question but should these replace the existing uc_credit and uc_paypal folders inside ubercart/payment? Will they work with UC2.x?

thanks

Martin

Axel_Pressbutton's picture
Offline
Joined: 11/30/2008
Juice: 123
Comments from the author...

Hi guys,

I sent a PM to the author, Mark B, and this was his reply;

(I'm sure he won't mind me posting it here as it will possibly help others to make a decision as to which path to follow)

Quote:

I'm pretty certain that my WPP modules won't work on D6/UC2.x. The module installer will definitely need to be ported to the Drupal 6 format, and I've no idea what changes there were in the Ubercart API from 1.x to 2.x, but I would expect there were quite a few.

At the moment I have no plans to port the contributed modules to D6/UC2.x, but I can give you a starting direction - my custom modules are basically a hack of the uc_paypal and uc_credit modules which were included in Ubercart 1.x - uc_credit was modified to add UK-specific card types, and uc_paypal was modified to use the PayPal UK request/response parameters instead of the PayPal US parameters. All in, it took me about a day to make the changes using those core Ubercart modules as a starting point.

My suggestion is to either customise the UC2.x uc_credit and uc_paypal modules (or their UC2.x equivalents) yourself, or hire a freelance Drupal developer to do the work - my "1 day" estimate should give you an idea of what it would cost.

@ martinjbaker - Yes, you simply replace the existing folders

@ glowkeeper - I'm curently running one site with a WPP UK but wih reduced card options (until i can get this working in D6/UC2 and I also have another build in progress where the client wanted to use RBS WorldPay

Cheers, R

thiokol's picture
Offline
Joined: 05/07/2009
Juice: 69
Hi, Is anyone working on

Hi,

Is anyone working on this? I would have thought it would be a priority for the ubercart core.

I would be interesting in co-sponsoring this, or possibly paying to have it done myself.

If anyone is interested please send me a quote.

Thanks.

cedric@shake-biz.co.uk's picture
Offline
Joined: 07/23/2009
Juice: 36
Hi there I've got to to get

Hi there
I've got to to get Paypal Payments Pro UK working for my client.
I'm using the latest version of ubercart.
I've manage to update the module to the 6 version using my little php knowledge and deadwood.It seems to be working up to a certain point.I get an error saying 'Authentication failed' on the log when I try to process a card.
Also i need to implement 3-D Secure process.
'Maestro Cards will be turned off 1st January 2010, for all Website Payment Pro merchants accepting transactions via the internet'.
If any one could help me to finish the module that would be very good.
I've attached the modules.
Thanks
Cedric

AttachmentSize
paypalUK.zip 56.74 KB
thiokol's picture
Offline
Joined: 05/07/2009
Juice: 69
Re: Hi there I've got to to get

Is anyone working on this at all and could help Cedric fix his module?

I really dont understand why this hasnt been done as a priority for the core module, unless its a very difficult job or perhaps there just isnt enough demand for it?

Im guessing there are probably many sites with this already implemented but the module hasnt been released back to the community?

It's highly frustrating as I have many potential e-commerce clients who would be happy to use WPP UK but arent prepared to go through the process of getting a merchant account/gateway elsewhere.

Ive said before but I'll say again, anything that can be done to help including funding please get in touch!

cedric@shake-biz.co.uk's picture
Offline
Joined: 07/23/2009
Juice: 36
Re: Re: Hi there I've got to to get

right I'll try to be as clear as possible

you'll find attached the module pro paypal uk
and the modified credit module.
I couldn't port the credituk module to 6 I had too many errors so I modified the original credit module instead.

then I used the 3d secure module and the cardinal module

I've apply manually the patch
http://www.ubercart.org/issue/4800/3dsecure_payment_passthrough

and on the payapl UK
added 4 new fields that needs to be passed to paypal when the answers get back from 3d secure.
'ECI3DS'
'CAVV'
'XID'
'AUTHSTATUS3DS'
'MPIVENDOR3DS'

also on the order array I added two new value which is the cardstart and issue
because for some reason they weren't passed through.

Also the credit card that is first sent to 3dsecure is then encrypted so then needs to be decrypted back to be sent to paypal.
$order->payment_details['cc_number'] = uc_3dsecure_get_card_number();

So far it works normally.

I forgot on the paypalUk module the install file doesn't work for some reason I'm sure it's something silly.
the table 'uc_payment_paypal_ipn' isn't beeing created ( I've created manually), so this file needs work.

the module paypal Uk is working for direct credit card payments via Paypal Website Payments Pro (UK) but I haven't even tried with the other options.So probably needs to be look at.
I had very little time to get it ready for a live site so I've made it work but it's probably not clean.
Have a look and if anyone can tell me if there's something wrong that would be great and then you can post as a contrib module.
I've ran into a few errors so any problems email me.
Thanks
cedric

AttachmentSize
uc_paypal_uk.zip 18.57 KB
uc_credit.zip 39.96 KB
realworksmedia's picture
Offline
Joined: 10/23/2007
Juice: 107
Hi, Here's a backport of

Hi,

Here's a backport of Cedric's modules to Drupal 5.

I've had them running with 3dSecure and Cardinal MPI.

I've posted a backport to 5 of 3dSecure here http://www.ubercart.org/project/3dsecure and the backported cardinal MPI module is attached.

(sorry, I so couldn't find the original page for the Cardinal Module so have dumped it here... :-| )

AttachmentSize
cardinal_mpi.tar 9.55 KB
uc_credit_uk.tar 35.25 KB
uc_paypal_uk.tar 22.04 KB
realworksmedia's picture
Offline
Joined: 10/23/2007
Juice: 107
Hey Folks,Here's the links

Hey Folks,

Here's the links to the Ubercart 2.x versions of the above:

3DSecure Module:
http://www.ubercart.org/project/3dsecure

Cardinal MPI:
http://www.ubercart.org/project/cardinal_mpi

Below I've uploaded:

uc_paypal_uk - I have modified this from it's previous version. It now posts the Cardinal 3D Secure results to PayPal so they are displayed in the History -> Payment -> Details.

uc_credit - UK version which is unchanged, just posting here for convenience Smiling
Paul

AttachmentSize
uc_paypal_uk.tar 18.62 KB
uc_credit.tar 38.87 KB
mikeede's picture
Offline
Joined: 06/03/2011
Juice: 27
Hi, I am not sure of the

Hi,
I am not sure of the purpose that the Cardinal_mpi serves?

Am I right in thinking that to have paypal pro working in the UK I need to install the UC_paypal_uk and UC_credit modules and both the 3d secure module and the cardinal MPI?

Sorry if it is a daft question but I am still towards the begining of the learning curve but would like to accept pay pal pro payments.

Many thanks,

Mike

realworksmedia's picture
Offline
Joined: 10/23/2007
Juice: 107
No worries.Yep, you need all

No worries.

Yep, you need all 4 modules.

PayPal UK and Credit Card UK are modified versions of the Standard Ubercart Modules. PayPal Payments Pro UK has a slightly different API than the Payflow PRO (US).

Replace the standard PayPal and Credit Card modules with the modified ones above.

The 3D Secure Module handles the display of the password box on checkout and passing the authorisation response back to the PayPal Module.

The Cardinal MPI Module handles the actual request to the https://paypal.cardinalcommerce.com/ system. PayPal uses Cardinal Commerce to process 3D Secure checks so you'll need to create an account with Cardinal which from memory I believe you can do through the https://www.paypal.com website.

You need to have a PayPal business account and signup for their PayPal Payments Pro solution.

tomotomo's picture
Offline
Joined: 08/02/2011
Juice: 22
Re: Paypal Payments Pro UK

I have it on good authority that while there used to be a difference with Pro UK and US, that they have standardized on the same API credential system. So any recently created UK Pro account should be the same as a US account, and the normal UC Paypal module should work fine.

realworksmedia's picture
Offline
Joined: 10/23/2007
Juice: 107
Ah, thanks for that.

I always felt dirty using an off-shoot of the main uc_credit and uc_paypal modules.

I'm fairly sure it would be a straight forward update to the current modules.

I presume the Cardinal and 3d Secure modules are still required?

Best,
Paul Hudson