Skip to content
This is a reall basic example of the Braintree Hosted Fields using Flask to make a Credit Card or PayPal payment.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
templates
README.md
app.py

README.md

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
You can’t perform that action at this time.