growstuff

https://github.com/growstuff/growstuff

Ruby

Open data project for small-scale food growers

ActiveMerchant::Billing::PaypalRecurringApi#recurring

Create a recurring payment.

This transaction creates a recurring payment profile
==== Parameters

* <tt>money</tt> -- The amount to be charged to the customer at each interval as an Integer value in cents.
* <tt>credit_card</tt> -- The CreditCard details for the transaction.
* <tt>options</tt> -- A hash of parameters.

==== Options

* <tt>:period</tt> -- [Day, Week, SemiMonth, Month, Year] default: Month
* <tt>:frequency</tt> -- a number
* <tt>:cycles</tt> -- Limit to certain # of cycles (OPTIONAL)
* <tt>:start_date</tt> -- When does the charging starts (REQUIRED)
* <tt>:description</tt> -- The description to appear in the profile (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-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#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-recurring-for-pr

hub pull-request


# Celebrate!