gimme_gimme is a Rails engine for managing a User's credit cards. It can authorize and charge cards through its Authorize.net gateway.
gimme_gimme ships with generators:
rails generate gimme_gimme:install
This will create a DB migration and include the GimmeGimme::User module into the User model.
To copy fake server and spec helper files to your application, run:
rails generate gimme_gimme:test_support
This will generate test support for the Authorize.net gateway.
gimme_gimme can use either Authorize.net or Braintree as its payment gateway. To set your gateway, create config/gimme_gimme.yml and fill in the info appropriate to your gateway as shown below.
gimme_gimme will use Rails.env to determine which entry in the YAML file to use. If you do not have a gateway_mode set for the current Rails.env, it will use the :test mode.
Authorize.net must have CIM enabled. For information on CIM, see http://www.authorize.net/solutions/merchantsolutions/merchantservices/cim/.
gateway: authorize_net_api_login_id: your_login_id authorize_net_transaction_key: your_transaction_key test: gateway_mode: test <other_rails_env>: gateway_mode: production
You must have version 2.x.y of the Braintree gem.
gateway: braintree braintree_api_merchant_id: your_merchant_id braintree_api_public_key: your_public_key braintree_api_private_key: your_private_key test: gateway_mode: test <other_rails_env>: gateway_mode: production