growstuff
https://github.com/growstuff/growstuff
Ruby
Open data project for small-scale food growers
ActiveMerchant::Billing::SmartPs#authorize
Pass :store => true in the options to store the payment info at the gateway and get a generated customer_vault_id in the response. Pass :store => some_number_or_string to specify the customer_vault_id the gateway should use (make sure it's unique).
Edit
git clone [email protected]:growstuff/growstuff.git
cd growstuff
open vendor/gems/activemerchant-1.33.0/lib/active_merchant/billing/gateways/smart_ps.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ActiveMerchant--Billing--SmartPs-authorize-for-pr
# Commit to gitgit add vendor/gems/activemerchant-1.33.0/lib/active_merchant/billing/gateways/smart_ps.rbgit commit -m "better docs for ActiveMerchant::Billing::SmartPs#authorize"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ActiveMerchant--Billing--SmartPs-authorize-for-pr
hub pull-request
# Celebrate!