A medium-like web application in which a user pays for a membership after viewing three free posts.
Stripe: Add necessary stripe keys (Secret Key, Webhook Key)
MAX_FREE_POSTS: the number of free posts a user can read before having to pay (default = 3)
Clone the project
git clone https://github.com/sulavmhrzn/pay-to-view
Go to the project directory
cd pay-to-view
Install dependencies
pip install -r requirements.txt
Migrate database
py manage.py migrate
Start the server
py manage.py runserver
Start stripe webhook
stripe listen --forward-to localhost:8000/payment/webhook/
Server: Python, Django
Payment: Stripe
PDF: Weasyprint