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.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/alphabetlearning/payments/views.py b/alphabetlearning/payments/views.py
index 8337177..ca81d86 100644
--- a/alphabetlearning/payments/views.py
+++ b/alphabetlearning/payments/views.py
@@ -15,6 +15,7 @@ from .models import Price
from .models import Product
from .models import ShoppingCart
+
stripe.api_key = settings.STRIPE_SECRET_KEY
@@ -31,8 +32,8 @@ class CreateCheckoutSessionView(View):
},
],
mode="payment",
- success_url=domain + "payments/success/",
- cancel_url=domain + "payments/cancel/",
+ success_url=domain + "/payments/success/",
+ cancel_url=domain + "/payments/cancel/",
)
return redirect(checkout_session.url, code=303)