diff options
-rw-r--r-- | alphabetlearning/payments/views.py | 12 |
1 files changed, 12 insertions, 0 deletions
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 |