This is a reall basic example of the Braintree Hosted Fields using Flask to make a Credit Card or PayPal payment.
This demo uses
- Python 2.7+
- The flask web framework
- Fill in the following credentials:
- Number:
4111 1111 1111 1111
- CVV:
123
- Expiration date:
11/2020
- Number:
- Click submit
or you can sign in using your PayPal Sandbox account
- Run
pip install flask
to install flask - Run
pip install braintree
to install braintree - Run
Python app.py
in the root project folder to run the server - Visit
http://127.0.0.1:5000/
in your browser - Proceed as above