Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 722 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 722 Bytes

Braintree Hosted Fields Python demo using Flask

This is a reall basic example of the Braintree Hosted Fields using Flask to make a Credit Card or PayPal payment.

Technology

This demo uses

  • Python 2.7+
  • The flask web framework

Demo

  • Fill in the following credentials:
    • Number: 4111 1111 1111 1111
    • CVV: 123
    • Expiration date: 11/2020
  • Click submit

or you can sign in using your PayPal Sandbox account

Running the demo locally

  • 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