growstuff

https://github.com/growstuff/growstuff

Ruby

Open data project for small-scale food growers

ActiveMerchant::Billing::PaypalRecurringApi#update_recurring

Update a recurring payment's details.

This transaction updates an existing Recurring Billing Profile
and the subscription must have already been created previously 
by calling +recurring()+. The ability to change certain
details about a recurring payment is dependent on transaction history
and the type of plan you're subscribed with paypal. Web Payment Pro
seems to have the ability to update the most field.

==== Parameters

* <tt>options</tt> -- A hash of parameters.

==== Options

* <tt>:profile_id</tt> -- A string containing the <tt>:profile_id</tt>
of the recurring payment already in place for a given credit card. (REQUIRED)

Source | Google | Stack overflow

Edit

git clone [email protected]:growstuff/growstuff.git

cd growstuff

open vendor/gems/activemerchant-1.33.0/lib/active_merchant/billing/gateways/paypal/paypal_recurring_api.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActiveMerchant--Billing--PaypalRecurringApi-update_recurring-for-pr


# Commit to git

git add vendor/gems/activemerchant-1.33.0/lib/active_merchant/billing/gateways/paypal/paypal_recurring_api.rbgit commit -m "better docs for ActiveMerchant::Billing::PaypalRecurringApi#update_recurring"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ActiveMerchant--Billing--PaypalRecurringApi-update_recurring-for-pr

hub pull-request


# Celebrate!