views:

3662

answers:

5

Hi.

I would like to implement a payment solution with my Rails site using Paypal Website Payments Standard. (See https://www.paypal.com/IntegrationCenter/ic_standard_home.html). I don't want fancy gateways, and I don't want to go through the hassles related to storing credit card information. I also want to use Paypal IPN for notifications.

I have checked out various sites such as http://www.fortytwo.gr/blog/14/Using-Paypal-with-Rails, and I'm too cheap to try Rails Kits at http://railskits.com/saas/.

Does anybody know of a working open-source Rails application that makes use of Paypal Website Payments Standard for billing, and can you point me to that code?

Also, my business is in Canada, but the servers are in the USA. Do I have to sign up for Paypal.com or paypal.ca?

+4  A: 

Both Spree and Substruct are e-commerce platforms written in Rails that support Paypal IPN. Both are open source, so it might be helpful to start by looking at how they handle Paypal Integration.

Gabe Hollombe
+13  A: 

I would also check out ActiveMerchant. Here's a bit more info here.

Cameron Booth
+2  A: 

Spree contains an extension for Payapl Website Payments Standard. In fact, the popular envycasts site is a great example of this extension in use. If you want Rails and you want the Paypal Standard stuff, this is your solution.

schof
+2  A: 

How about using this code snippet?

http://cubanlinks.org/articles/2005/8/3/ruby-on-rails-paypal-ipn-code-example

I'd prefer not to use activemerchant or other plugin if I can use this simple code snippet.

Any feedback?

+1  A: 

Actually there is much smaller solution, use paypal gem, what it gives is the IPN a very easy IPN handling. All the rest is just an html form :)

Devenv
@Devenv - What, exactly is the name of this gem?
Jay Godse