virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
export FLASK_APP=main.py
export FLASK_DEBUG=1
flask run
See apache example config & wsgi config example in repo. (assumes mod wsgi is installed & enabled on apache)
curl -H 'Content-Type: application/json' -d '{"account":"-1"}' <host> | grep "No site_url for that account id"
Listen for webhooks using stripe cli (forwarding to this app) Also, on another port, run a shop locally on another port (e.g. flask run --port 5001) Then start the checkout process to generate events.
Listen locally to only the events which need to be processed using stripe cli:
stripe listen --events checkout.session.completed,payment_intent.succeeded --forward-to 127.0.0.1:5001