From 1a5359eaa9bb2d2d8aeaf10d97a6b4c7aa0d47d2 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 17 Oct 2024 17:40:10 +0100 Subject: Adds TODO to the payments/view page for the next steps --- alphabetlearning/payments/views.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'alphabetlearning/payments/views.py') diff --git a/alphabetlearning/payments/views.py b/alphabetlearning/payments/views.py index ca81d86..80d6aa2 100644 --- a/alphabetlearning/payments/views.py +++ b/alphabetlearning/payments/views.py @@ -15,6 +15,18 @@ from .models import Price from .models import Product from .models import ShoppingCart +# TODO get the cart integrated with Stripe +# Steps to convert our Cart into something that can be used with Stripe: +# +# - Associate each of our resources with a Product item +# - this should be done in the create resource page +# - or we can do it manually for the time being +# - Check that we can add resources to the cart +# - When the user hits the cart page, each associated product is pulled from the database +# - prices are extracted from the products accordingly +# - use the form from the landingpage.html as the checkout button to call the create-checkout-session +# - Add delete buttons the checkout page, etc + stripe.api_key = settings.STRIPE_SECRET_KEY -- cgit v1.2.3