growstuff

https://github.com/growstuff/growstuff

Ruby

Open data project for small-scale food growers

ActiveMerchant::Billing::AuthorizeNetCimGateway#create_customer_payment_profile

Creates a new customer payment profile for an existing customer profile.

==== Options

* <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer the payment profile will be added to. (REQUIRED)
* <tt>:payment_profile</tt> -- A hash containing the elements of the new payment profile (REQUIRED)

==== Payment Profile

* <tt>:payment</tt> -- A hash containing information on payment. Either :credit_card or :bank_account (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/authorize_net_cim.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActiveMerchant--Billing--AuthorizeNetCimGateway-create_customer_payment_profile-for-pr


# Commit to git

git add vendor/gems/activemerchant-1.33.0/lib/active_merchant/billing/gateways/authorize_net_cim.rbgit commit -m "better docs for ActiveMerchant::Billing::AuthorizeNetCimGateway#create_customer_payment_profile"


# 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--AuthorizeNetCimGateway-create_customer_payment_profile-for-pr

hub pull-request


# Celebrate!