stripe-potato-demo
Example heroku app that shows how django-stripe-payments and checkout.js work together.
Development:
(You can use sqlite, but using different databases on production and development is not a good idea)
3- Install virtualenv & create one
4- Run bootstrap.py
python bootstrap.py5- Install dependencies via fabric
fab deps6- syncdb & migrate
python app/manage.py syncdbpython app/manage.py migrate6- Create local_settings.py and put your Stripe and AWS keys in there
7- Create Stripe plans
python app/manage.py init_plans8- Start devserver
fab runserveror
python app/manage.py runserverTesting Webhooks
1- install node.js
2- install localtunnel
npm install -g localtunnel3- Run localtunnel
lt --port 8000
your url is: http://<random_id>.localtunnel.me4- Put "http://RANDOM_ID.localtunnel.me/payments/webhook/" to Stripe webhook dashboard, in test mode.