/did_django_stripe_api

DID Coding Stripe API app that uses Django web framework to process online payments

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

did_django_stripe_api

Django project that uses Stripe to process online card payments

  1. cd to development directory
  2. mkvirtualenv did_django_stripe_api
  3. mkdir did_django_stripe_api
  4. clone repository to new directory
  5. pip install -r requirements.txt
  6. Update settings.py with your email API information

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = 'XXX' EMAIL_PORT = 'XXX' EMAIL_USE_TLS = 'XXX' EMAIL_HOST_USER = 'XXX' DISPLAY_NAME = "Stripe API demo email" DONOT_REPLY_EMAIL_PASSWORD = 'XXX' CURRENT_SITE = "http://localhost:8000"

if DEBUG:

STRIPE_PUBLISHABLE = 'XXX'
STRIPE_SECRET = 'XXX'
STRIPE_TAX = 'XXX'

else:

STRIPE_PUBLISHABLE = 'XXX'
STRIPE_SECRET = 'XXX'
STRIPE_TAX = 'XXX'
  1. python manage.py makemigrations
  2. python manage.py migrate
  3. python manage.py runserver
  4. https://localhost:8000 - Bob's your uncle!!