aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/payments/views.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-09 17:21:11 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-09 17:21:11 +0100
commit677c935fdc3b083a9940a1b2f280cb1ccdbc03bd (patch)
treed9ecde9f2b9dc7db923438120b9031dc2b9b6301 /pyblackbird_cc/payments/views.py
parent082d6a7ee8bece150c04840474b18aa791f6300d (diff)
wip: working on tests for adding resource to a cart
Diffstat (limited to 'pyblackbird_cc/payments/views.py')
-rw-r--r--pyblackbird_cc/payments/views.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/pyblackbird_cc/payments/views.py b/pyblackbird_cc/payments/views.py
index 40c2380..6863869 100644
--- a/pyblackbird_cc/payments/views.py
+++ b/pyblackbird_cc/payments/views.py
@@ -1,18 +1,13 @@
import stripe
from django.conf import settings
from django.contrib.auth.decorators import login_required
-from django.shortcuts import get_object_or_404
-from django.shortcuts import redirect
-from django.shortcuts import render
+from django.shortcuts import get_object_or_404, redirect, render
from django.views import View
from django.views.generic import TemplateView
-
from pyblackbird_cc.resources.models import Resource
+from pyblackbird_cc.users.models import User
-from .models import CartItem
-from .models import Price
-from .models import Product
-from .models import ShoppingCart
+from .models import CartItem, Price, Product, ShoppingCart
stripe.api_key = settings.STRIPE_SECRET_KEY
@@ -93,3 +88,4 @@ def checkout(request):
return render(request, "cart/checkout_success.html")
return render(request, "cart/checkout.html", {"cart": cart, "total": total})
+ pass