summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-06-04 11:31:20 -0700
committerAzul <azul@leap.se>2013-07-17 10:47:13 +0200
commit9af9b974b80cf7de11766c0ba56b9ab178911152 (patch)
tree78b9cdf04b49ab97505fe4535691055af3faed2d
parent41eb0f61e46731fda2381369a2a307eca32ea7f3 (diff)
Start to Readme for explaining how to test this locally with one's own sandbox.
-rw-r--r--billing/README.rdoc24
1 files changed, 24 insertions, 0 deletions
diff --git a/billing/README.rdoc b/billing/README.rdoc
new file mode 100644
index 0000000..fbf5b51
--- /dev/null
+++ b/billing/README.rdoc
@@ -0,0 +1,24 @@
+= Billing
+
+This project rocks and uses MIT-LICENSE.
+
+To set up your own Braintree Sandbox, create an account at:
+https://www.braintreepayments.com/get-started
+
+Login.
+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 select 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.
+
+Now, you should be able to add charges to your own Sandbox when you run the webapp locally.
+
+You also will want to add a Plan to your Sandbox. Within the Braintree Sandbox, navigate to 'Recurring Billing' -> 'Plans'. From here, you can add a new Plan. The values of the test plan are not important.
+
+Here are credit cared numbers to try in the Sandbox:
+
+https://www.braintreepayments.com/docs/ruby/reference/sandbox \ No newline at end of file