From 9af9b974b80cf7de11766c0ba56b9ab178911152 Mon Sep 17 00:00:00 2001 From: jessib Date: Tue, 4 Jun 2013 11:31:20 -0700 Subject: Start to Readme for explaining how to test this locally with one's own sandbox. --- billing/README.rdoc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 billing/README.rdoc (limited to 'billing') 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 -- cgit v1.2.3