February 9, 2011 Paypal Rails 3 Recurring Billing
If you really want a treat, at a whole new level, check out this one. It isn’t a cookie, but a sweet Gem that just got sweeter. Be sure to fall in love with the gang over at Shopify for creating Active Merchant. Active Mechant is a wrapper for Paypal’s API to help hacks like me talk to Paypal’s API via my Ruby on Rails apps (other gateways too) effortlessly. On top of that enormous time savings, thanks to Van Tran et Raymond Law with SOAP, we now have recurring billing with Active Merchant! If the below means ANYTHING to you, be sure to check it out.
::GATEWAY = ActiveMerchant::Billing::PaypalRecurringGateway.new() // response = GATEWAY.create_profile(nil, :credit_card => credit_card, :description => 'Good times', :start_date => Date.today, :period => 'Month', :frequency => 1, :amount => 1000, :initial_amount => 1000, :auto_bill_outstanding => true) //
If anyone is crazy enough to be a Ruby hack and needs help with this let me know. I will make a sample app on github to clone otherwise Van does a nice job.