Brief implementation of https://p2p.qiwi.com API.
p2p Secret Key is needed to run this module.
MAC OS, python 3.8.5:
> virtualenv venv
> . venv/bin/activate
> pip install -r requirements_local.txt
> export QIWI_SECRET_KEY=your_secret_key_from_https://p2p.qiwi.com
> python qiwi.py
For this web-app you will need ssl certificates to receive Invoice Payment Notifications (see. documentation)
You might want to run this repository with IBM Cloud CF for free. Secret Key should be passed through manifest.yml or via CF SSH. Also you need to set application name, which should have proper route address assigned.
For trying flask app.py locally (MAC OS, python 3.8.5):
> virtualenv venv
> . venv/bin/activate
> pip install -r requirements.txt
> export QIWI_SECRET_KEY=your_secret_key_from_https://p2p.qiwi.com
> flask run
P.S. Payment cancellation doesn't work for the reason yet unknown.