The 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's a good way to do this? A pearl from Rubygems? (There are 30, most of them seem to be abandoned ...) Or stick to SDK libs from Paypal? Unfortunately they are very Rails oriented ...
You should consider Active Merchant , which is an actively developed, mature library. While it integrates well with Rails, it can be used as a stand-alone library and supports many payment methods if you think about adding non-PayPal methods at some point.
Have a look at ruby-toolbox.com ( Paypal ), you can see which project is the most popular
I created a Gem to do exactly that: https://rubygems.org/gems/sinatra-paypal
You use it simply by adding a payment
block to your application
payment :complete do |p|
# check the price is correct, then
# do whatever
end