- Clone the repository and make it cwd.
- Install and upgrade virtualenv package by
pip3 install virtualenv - Create virtual environment
virtualenv venv - Activate the virtal environment
source venv/bin/activatefor Linux and./venv/Scripts/activatefor Windows. - Install the required libraries
pip3 install -r requirements.txt - Create a stripe account by going to https://stripe.com/
- Get your publishable and secret test keys. Change the STRIPE_PUBLISHABLE_KEY and STRIPE_SECRET_KEY values in subscriptionsystem/settings.py.
- Also, enter your publishable key in memberships/static/memberships/checkout.js
- Create billing plans for your product on Stripe. You will get stripe plan id & price for each plan.
- Now, create a super user by
python3 manage.py createsuperuserand a user will be created on your stripe account. - Login with the credentials of created super user at http://127.0.0.1:8000/admin
- Under membership paste your stripe plan id fpr each .
- Now you can subscribe to any of the plans by going to http://127.0.0.1:8000/memberships.
- Give a star if you found this useful!
-
Notifications
You must be signed in to change notification settings - Fork 0
mohitgurav/Stripe_subscription_payments
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published