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 ...

+3


source to share


3 answers


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.



+3


source


Have a look at ruby-toolbox.com ( Paypal ), you can see which project is the most popular



0


source


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

      

0


source







All Articles