This project is for demo purposes only. It shows the Affirm Direct API integration in action against the Sandbox environment.
- Make sure Python 3 is installed
- You will need to install less via NPM
You will need to add your Affirm Sandbox API keys in a couple locations:
- Public and Private to
secret.py
- Public to
static/js/affirm.js
You will also need to set an environment variable for the FLASK_APP
. Just run this line in the project's root directory.
$ export FLASK_APP=main.py
The command below will start the Flask server
$ python -m flask run