Buy me a coffee based payment and subscription system
Provide the user with the
- link to your Buy Me A Coffe page (same as you set in the BMAC_LINK env var).
- A unique user id, which the user should write in the optional note field.
call bmac_client.init_subscriptions()
to fetch all the new payments. the user id will be extracted and stored in
user_data and valid_subscriptions. Use these to implement your custom logic.
call bmac_client.clear_expired_subscribers()
to expire the subscriber.
add a .env
file
BUY_ME_A_COFFEE_API_KEY=YOUR_API_KEY
BMAC_LINK=https://www.buymeacoffee.com/YOUR_PAGE
pip install pipreqs
pipreqs --force .
pip install -r requirements.txt
Add a star :)