aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/payments/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'alphabetlearning/payments/views.py')
-rw-r--r--alphabetlearning/payments/views.py28
1 files changed, 9 insertions, 19 deletions
diff --git a/alphabetlearning/payments/views.py b/alphabetlearning/payments/views.py
index 6eaae1a..cdfafe6 100644
--- a/alphabetlearning/payments/views.py
+++ b/alphabetlearning/payments/views.py
@@ -1,29 +1,19 @@
import stripe
+from alphabetlearning.payments.models import EmailSignup, EmailVerification
+from alphabetlearning.resources.models import Resource
+from alphabetlearning.users.models import User
from django.conf import settings
from django.contrib.auth.decorators import login_required
-from django.core.mail import mail_admins
-from django.core.mail import send_mail
-from django.http import HttpResponse
-from django.http import HttpResponseBadRequest
-from django.shortcuts import get_object_or_404
-from django.shortcuts import redirect
-from django.shortcuts import render
-from django.urls import reverse
-from django.urls import reverse_lazy
+from django.core.mail import mail_admins, send_mail
+from django.http import HttpResponse, HttpResponseBadRequest
+from django.shortcuts import get_object_or_404, redirect, render
+from django.urls import reverse, reverse_lazy
from django.views import View
from django.views.decorators.csrf import csrf_exempt
-from django.views.generic import DeleteView
-from django.views.generic import TemplateView
-
-from alphabetlearning.payments.models import EmailSignup
-from alphabetlearning.payments.models import EmailVerification
-from alphabetlearning.resources.models import Resource
-from alphabetlearning.users.models import User
+from django.views.generic import DeleteView, TemplateView
from .forms import EmailVerificationForm
-from .models import CartItem
-from .models import Price
-from .models import ShoppingCart
+from .models import CartItem, Price, ShoppingCart
# TODO get the cart integrated with Stripe
# Steps to convert our Cart into something that can be used with Stripe: