Skip to content

Instantly share code, notes, and snippets.

View vadim-v's full-sized avatar

Vadym Vakhovskiy vadim-v

View GitHub Profile
@vadim-v
vadim-v / paypal_recurring_gateway.rb
Created March 7, 2012 23:25 — forked from vijjunyros/paypal_recurring_gateway.rb
Paypal Recurring Gateway, based on ActiveMerchant
class PaypalRecurringGateway < ActiveMerchant::Billing::PaypalGateway
NS2 = 'n2:'
self.default_currency = 'USD'
def create_recurring(money, credit_card, options = {})
request = create_recurring_request(money, credit_card, options)
commit("CreateRecurringPaymentsProfile", request)
end
def update_recurring(money, profile_id, options = {})