Garbage Burrito!

An internet web blog by Ben Kittrell

Paypal Website Payments Pro with Ruby on Rails

Paypal Website Payments Pro with Ruby on Rails
Ben Kittrell - 06/18/2006 13:07:00
Comments: 9

Update - Paypal Website Payments Pro on Rails - Take 2

I've been writing the billing system for DoodleKit and I finally got to the actual payment authorization piece. I chose Paypal Website Payments Pro because it seemed simple in a couple of ways. First of all their pricing structure is very easy. $20/mo + a small nominal transaction fee. Most other gateways are like $10 for the gateway $10 for the merchant account, complex transaction fees, minimum transaction fees, and a $.10 fee if the payment is made on your birthday. They also have a web service API which gave me a warm fuzzy feeling inside. Every payment gateway I've ever worked with has been a real pain in the rump.

So anyway, I had this working with PHP just fine, but now it was time to get it working with Ruby. First I tried vPayPal which seemed promising. However I actually went through many different issues, which I regrettably didn't log. Most of them where issues with my environment and not vPayPal. I finally ended up with "tlsv1 alert unknown ca". This was after I had spent at least 2 weeks on this and I felt like I was getting nowhere. I can't say that the problem was with vPayPal, I'm pretty sure it was just some weird combination of circumstances.

I thought about writing my own plugin, but I knew that would come with another set of unsavory issues. Finally I found RoR::PayPal. I just followed their instructions and poof, it worked. The thing I like about this one, other than the fact that it worked for me right away, is that it's a plugin instead of a ruby library. This way I can include it with the source code and it's deployed with the app. Also it makes it easier for running multiple apps with different configurations.

All in all I would recommend RoR::PayPal for anyone looking to use Paypal Website Payment Pro with Ruby on Rails. I would also recommend Website Payments Pro in general, as it has been fairly easy to work with.

Now if I could just get someone to try it out. Anyone want to try out the payment system? I think it would be best to test out large transactions.

Comments: 9

Comments

1. Mike Zornek   |   07/21/2006 21:26:32

Have you been able to get the express checkout stuff working via RoR::PayPal ? I need to support that aspect of WPP. Please let me know. Email if possible.

2. Kyle   |   11/14/2006 18:42:30

Thanks for the tip. Fortunately, I've only wasted a few hours on VPaypal to find that it is NOT what I am looking for.

3. Paul Hepworth  |  my website   |   04/04/2007 01:29:03

Thanks for the post. FYI, the link to the code is now http://elctech.com/projects/paypal.

It looks like they updated their blog recently.

4. Ben Kittrell   |   04/04/2007 12:49:50

Thanks Paul, I've updated the links.

5. Ben   |   04/27/2008 00:23:42

Hi, thanks for you the post. I'm trying it out now. I'm having trouble with the first instruction in the README. Install GEM. How is that done?

6. Rubens Marques  |  my website   |   10/23/2008 21:08:07

CADMAX3D - 0800-7744204 - Oferece serviços de Computação Gráfica, Animações gráfica, produção de maquetes eletrônicas para apresentações de projetos arquitetônicas em multimídia com recursos de Walktour, interatividade e passeios virtuais internos.

7. Adam Barger   |   11/12/2008 00:07:07

If you're looking for a seriously good <a href="http://webstarts.com">free website</a> builder you should check this one out.

8. Patrick Byers  |  my website   |   03/03/2009 14:05:21

I'm on a new project where I'm trying to integrate WPP into a site. Have you found RoR::Paypal is still a good solution? Is it working with Rails 2? Paypal has an "official" list of compatible carts, so I'm hesitant to try another.

9. sathish   |   02/18/2010 00:28:10

I'm working on integrating PayPal website payment pro into my project.

I can not find ROR:PayPal blog in given link. Can you please share that blog link.

Also, Is that still be a good solution for PayPal website paymen pro solution?

Post a Comment


Please enter the word below.


powered by Doodlekit™ Free Website Builder by Doodlebit™ Website Company