This is a minimalistic example of Braintree's Client-Side Encryption working with a Ruby web application.
It's pretty simple:
git clone https://github.com/phinze/braintree_api_demo.git
cd braintree_api_demo
bundle install
shotgun app.rb
Then visit http://localhost:9393 to see the demo at work.
- Sign up for the Braintree Sandbox: https://www.braintreepayments.com/get-started
- Client-Side Encryption Library: https://github.com/braintree/braintree_client_side_encryption
- Docs for all of Braintree's Client Libraries: https://www.braintreepayments.com/developers