Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby on Rails and Paypal outside US

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 enter image description here

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

like image 627
Aggelos Avgerinos Avatar asked Apr 06 '13 12:04

Aggelos Avgerinos


2 Answers

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.

like image 88
mind.blank Avatar answered Oct 05 '22 09:10

mind.blank


PayPals Merchant API works only on the countries listed above.

like image 30
Aggelos Avgerinos Avatar answered Oct 05 '22 08:10

Aggelos Avgerinos