diff options
Diffstat (limited to 'pyblackbird_cc/payments/views.py')
-rw-r--r-- | pyblackbird_cc/payments/views.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pyblackbird_cc/payments/views.py b/pyblackbird_cc/payments/views.py index d02a2ab..36f1d84 100644 --- a/pyblackbird_cc/payments/views.py +++ b/pyblackbird_cc/payments/views.py @@ -17,6 +17,11 @@ from .models import ShoppingCart stripe.api_key = settings.STRIPE_SECRET_KEY +def cart(request): + cart = ShoppingCart.objects.get(user=request.user) + return render(request, "cart_detail.html", {"cart": cart}) + + class CreateCheckoutSessionView(View): def post(self, request, *args, **kwargs): price = Price.objects.get(id=self.kwargs["pk"]) |