No description, website, or topics provided.
Python CSS
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
.gitignore
Procfile
README.md
bootstrap.py
fabfile.py
requirements.txt

README.md

stripe-potato-demo

Example heroku app that shows how django-stripe-payments and checkout.js work together.

Development:

1- Install postgres, for Mac

(You can use sqlite, but using different databases on production and development is not a good idea)

2- Install & setup Heroku

3- Install virtualenv & create one

4- Run bootstrap.py

python bootstrap.py

5- Install dependencies via fabric

fab deps

6- syncdb & migrate

python app/manage.py syncdb
python app/manage.py migrate

6- Create local_settings.py and put your Stripe and AWS keys in there

7- Create Stripe plans

python app/manage.py init_plans

8- Start devserver

fab runserver

or

python app/manage.py runserver

Testing Webhooks

1- install node.js

2- install localtunnel

npm install -g localtunnel

3- Run localtunnel

lt --port 8000
your url is: http://<random_id>.localtunnel.me

4- Put "http://RANDOM_ID.localtunnel.me/payments/webhook/" to Stripe webhook dashboard, in test mode.