Braintree hosted fields demo using Ruby and Sinatra
This is a reall basic example of Braintree hosted fields and some of the callbacks that are available.
This demo uses
- Ruby 1.9.3 or higher
- The Sinatra web framework
- Fill in the following credentials:
- Number:
4111 1111 1111 1111
- CVV:
123
- Expiration date:
11/2020
- Number:
- Click submit
- Run
bundle
to install all dependencies - Run
ruby app.rb
to start the app - Visit
http://localhost:4567/
in your browser - Proceed as above