This code is a demonstration of creating one time transactions using Braintree's server-to-server API in conjunction with AJAX requests and Braintree's client side encryption library.
To run the example:
- Install required gems using bundler (bundle install)
- Configure app.rb using your sandbox credentials and client side encryption public key. If you need access to the sandbox contact Braintree.
- ruby app.rb