Philip
Philip

Reputation: 3500

Best way to integrate Paypal with Ruby

I have a Web application using Jruby and Sinatra (App Engine) and I want to use Paypal. What is a good way to do this? Gem from Rubygems? (There are 30, most of them seem to be abandoned...) Or stick with SDK libs from Paypal? Unfortunately they are very Rails oriented...

Upvotes: 3

Views: 3466

Answers (3)

Nathan
Nathan

Reputation: 12294

I created a Gem to do just this: https://rubygems.org/gems/sinatra-paypal

You use it just by adding a payment block in the application

payment :complete do |p|
    # check the price is correct, then
    # do whatever
end

Upvotes: 0

rid
rid

Reputation: 63442

You should consider Active Merchant, which is an actively developed, mature library. Even though it integrates well with Rails, it can be just as well used as a stand-alone library, and it supports many methods of payment, in case you will at some point consider adding methods different from PayPal.

Upvotes: 3

megas
megas

Reputation: 21791

Check out ruby-toolbox.com (Paypal), you can see which project is most popular

Upvotes: 0

Related Questions