This is a simple example on how to use Braintree with Angular and Django Rest Framework. We use Hosted Fields for the integration. You should check the Braintree JS Client SDK and the Braintree Python Server SDK before you continue.
The following instructions will get you a copy of this project up and running on your local machine for development and testing purposes.
git clone git@github.com:Bluescreens/Angular_DRF_Braintree_Example.git
cd Angular_DRF_Braintree_Example
- python: 3.6.3
- Angular = 4
pip install -r requirements.txt
- Use your braintree credentials here.
cd client
npm install && ng build
cd ../server
python manage.py runserver
- Any contribution that will enchance the current project is welcome.
- If you have any question about this project you can open an issue.
- If you spot any kind of bug or you have a suspicion of a bug that may occur please let us know by opening an issue.
- If you want to contribute to this project just create a pull request.
This project is licensed under the MIT Licence — see LICENSE.md file for details.
- Special thanks to Panos Louridas for his contribution to payment.component.ts and to RottenCrab for his help to the backend.
- You could check for more examples about internet cloud apps (Angular, Django, DRF, Flask, nginx, nodejs) here.