Using activemerchant with PayPal Payments Advanced - ruby-on-rails

I have a hosted web site built on Rails 2.3.14 and Ruby 1.8.7. In order to capture shipping info so I can compute shipping charge, I provide the form for shipping address and then use a credit card processor just to handle the actual credit card entry and authorization. PayPal's Payments Advanced does exactly what I want. I'd really like to use the activemerchant gem but I cannot find information on which specific gateway to use or how. There is an active_merchant discussion on github that says "This is almost an carbon copy of Payflow Link", but I cannot manage to convert that to a useful example, since every example I find passes CC info. Can anyone point to or provide an example of this usage of activemerchant?
-Russ

Payments Advanced is basically PayFlow Link, but it uses PayPal as your merchant processor instead of a 3rd party merchant account.
As such, you'll use the same steps as PayFlow link with a few minor changes. You can get all of the info about Payments Advanced here.
I don't know of any specific gem already developed for it, though.

Related

Recurring payments with ActiveMerchant + Stripe

Has anyone used the ActiveMerchant Stripe gateway to process recurring/subscription payments? If so, I'd love to see a code example.
There are a few references to 'recurring' in the gateway's source - https://github.com/Shopify/active_merchant/blob/master/lib/active_merchant/billing/gateways/stripe.rb, but I haven't been able to successfully supply a plan as described at https://stripe.com/docs/subscriptions.
Stripe has a Ruby gem, but I'd prefer to use ActiveMerchant b/c my Rails app is already using several other payment gateways.
Any help is much appreciated!
Stripe implementation at ActiveMerchant doesn't support recurring/subscription payments. In fact, most of the ActiveMerchant gateways integrations are with Shopify in mind. And 99.99% of Shopify transactions are one time transactions.
Take a look at the PayPal recurring solution at ActiveMerchant and you'll realize AM hasn't been focused at all on subscriptions.
Disclaimer: I work at MONEI.

FedEx api for shipping

I want to apply FedEx API in my e-commerce website.
but I did't know how to apply that API.
I have done "Test Key registration" and get Test Account information.
so what I am doing next.
Thanks
The following answer is concerning the tracking service which is part of the shipping services:
After receiving your test credentials (key, password, account number and meter number), use them to send SOAP requests (as you normally do using your programming language) to the service at https://wsbeta.fedex.com:443/web-services/track
Use 123456789012 as a test tracking number.
When you are ready to move to the production environment, change the service path to https://ws.fedex.com:443/web-services/track (or https://gateway.fedex.com:443/web-services/track) and use the production credentials that can be obtained from here
Please refer to the documentation to be informed on how to use the services with your programming language.
According to FedEx, they are retiring their API soon. I believe the target date is the end of May, 2012. Now they are going to web services instead of an API. Here is more on the announcement:
http://www.fedex.com/us/developer/migration.html
As far as the web services are concerned, they have good documentation on their site for both how to access the web services directly and how to put a widget on your site that will allow a customer to look up their shipping. Here are those resources:
http://www.fedex.com/us/developer/solutions.html
There are also demos and tutorials here:
http://www.fedex.com/us/developer/web-services/index.html
I hope that helps you get started.
If you feel you are ready to test live shipments you wil now need to contact the fedex help desk and ask to get a user key that will be associated with your fedex account.
The test key only gets you to the testing side of web services. To get real rates and such you will need to point to the live gateway using a real user key.

Ruby on Rails SaaS Free Billing Management

I am making a Ruby on Rails app and I need to be able to bill users. I would like to use either PayPal, credit cards, or both. I looked at Saasy (https://github.com/maccman/saasy) but it requires one of three paid gateways, and I need a free gateway. Is there any way to do this for free?
Edit: Is it smart to do it on my own using the Railscasts PayPal tutorials?
There is no such thing as a free gateway.
The cheapest/best option in my opinion is run your site with Recurly and use Intuit Merchant Service instead of PayPal.
Recurly has tight integration with IMS, and they also have a very nice Gem that you can add to your rails app which makes managing accounts and billing in-app quite easy.
Try to use active_merchant
https://github.com/Shopify/active_merchant

What is a good third party transaction API platform to use for ROR?

I have been looking at paypal for a online transaction, but I wanted to know if there are other 3rd party vendor that offer a good service at a good price ( transaction fee) and ease of use of API for ruby on rails application.
Check out Braintree. There's a Braintree Ruby gem that makes integration easy, and pricing is very competitive. And you don't have to fear "the paypal call".
Authorize.net has a better pricing plan that PayFloPro by Paypal, with very similar functionality.

What is the best way to organize automatic payout at the website?

I have Ruby on Rails application. I can get money from users cards using ActiveMerchant. Now I need to make payouts to the some users based on application logic.
For example,
Get 10$ from Andrew
Get 10$ from Mark
Get 10$ from Mike
... application magic that finds who should get money ...
Pay 30$ to Mark
Generally, I can use not only Ruby/Rails based solution but any protocol based on requests and responses.
I am planning to use Authorize.net but if this feature implementation will require to use something else then I can switch to other billing processing system. I prefer not to use PayPal.
Few technical details:
Ruby 1.8
Rails 2.3.2
ActiveMerchant 1.4.2
How can I manage automatic payout in my application?
Both the Authorize.net and the Braintree gateways support processing payments via ACH, or direct deposit into someone's bank account. Authorize.net's implementation is called eCheck, and is not currently supported in the ActiveMerchant gateway code. Braintree's API is supported in ActiveMerchant, and the Check model in AM will help you along.
You'll need to collect an account number and a routing number from Mark so that you can make deposits into his account.

Resources