Reputation: 3500
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
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
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