Reputation: 566
I'm using Rails 3.2.13 and I need to integrate with a payment gateway (preferably Paypal).
I've seen the railscasts of Ryan using ActiveMerchant, but I can't get it to work (I'm located in Greece), the error says that the merchant is not available in my country.
I can't actually get API credentials for Greece as shown
Is there a way (activemerchant or not) that I can integrate my Ruby on Rails app with Paypal from Greece, in order to accept payments?
Thanks
Upvotes: 5
Views: 1655
Reputation: 566
PayPals Merchant API works only on the countries listed above.
Upvotes: 1
Reputation: 4880
There are a few railscasts about PayPal as well. Ryan uses the paypal-recurring gem which I've used successfully with an Australian account.
I think you need a Premier or Business account to use the PayPal API and IPNs.
While you're working on the payment processing you'll want to sign up for a PayPal sandbox account so that you know everything is working.
The code required is listed in the gem I linked to, so I'm not going to copy paste it here.
In order to request a single payment I think you can use the request_payment
method and skip the create_recurring_profile
method. Also, you should double check that the PayPal page users get taken to doesn't say anything about signing up for a subscription.
Upvotes: 4
Reputation: 3195
here you can find paypal integration from scratch without gem
http://blog.joshsoftware.com/2013/01/08/paypal-payflow-setup-in-rails/
Upvotes: 0