diff options
author | jessib <jessib@riseup.net> | 2013-10-10 10:56:09 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-10-10 10:56:09 -0700 |
commit | 0acbf6a158f149c1f4273bde0cfca47547e080f8 (patch) | |
tree | 7e836d84ef8b879670b54eaaf6a8d3ae53ab7e14 /billing/README.rdoc | |
parent | b60a75d8cbe25ac47bb037e9e54a7cf4e2ba4e1f (diff) | |
parent | d6491496704b3909a93b5883f049becb408e0e47 (diff) |
Merge pull request #96 from azul/release/0.2.4
Release/0.2.4
Diffstat (limited to 'billing/README.rdoc')
-rw-r--r-- | billing/README.rdoc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/billing/README.rdoc b/billing/README.rdoc index 357c02e..30ca0d6 100644 --- a/billing/README.rdoc +++ b/billing/README.rdoc @@ -2,18 +2,19 @@ This project rocks and uses MIT-LICENSE. +The gem leap_web_billing will need to be included in whatever environment you are running, and billing will also need to be included in the configuration for that environment. You can set billing to be included in config/defaults.yml, by making sure the payment key is set to an array including billing (by default it will be set for the test environment, so you can look at that.) + To set up your own Braintree Sandbox, create an account at: https://www.braintreepayments.com/get-started -Login. +Login to the Braintree Sandbox. In the top right, navigate to your username, and then 'My User' -> 'API Keys' Click the button to generate a new API key, and then click the 'View' link to the right of the key. -There is a section to copy a snippet of code. Select 'Ruby' in the dropdown, and then the button to the right to copy this code to your clipboard. -Then, paste the contents of the clipboard into config/initializers/braintree.rb - -You should not check the private key into version control. +There is a section to copy a snippet of code. The simplest way to get this working is to select 'Ruby' in the dropdown, and then the button to the right to copy this code to your clipboard, and then paste the contents of the clipboard into billing/config/initializers/braintree.rb +However, you should not check the private key into version control, so you should not check in this file. +The better way to do this is to leave billing/config/initializers/braintree.rb as is, and instead set the braintree variables for the appropriate environment in config/config.yml, which is excluded from version control. Now, you should be able to add charges to your own Sandbox when you run the webapp locally. |