From 9d58f227ace6417aefa0763a2b3afd50e8610114 Mon Sep 17 00:00:00 2001 From: rizwanisready Date: Thu, 7 Mar 2024 18:46:30 +0530 Subject: [PATCH] website stripe updated --- manage_subscriptions/views.py | 2 +- templates/stripe_html/fail.html | 13 +++++++ templates/stripe_html/subscribe.html | 51 ++++++++++++++++++++++++++++ templates/stripe_html/success.html | 13 +++++++ 4 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 templates/stripe_html/fail.html create mode 100644 templates/stripe_html/subscribe.html create mode 100644 templates/stripe_html/success.html diff --git a/manage_subscriptions/views.py b/manage_subscriptions/views.py index 4fb0fed..0059b55 100644 --- a/manage_subscriptions/views.py +++ b/manage_subscriptions/views.py @@ -342,7 +342,7 @@ class PrincipalSubscriptionDeleteView(LoginRequiredMixin, generic.View): class SubscriptionPageView(TemplateView): - template_name = "stripe/subscribe.html" + template_name = "stripe_html/subscribe.html" def get(self, request, *args, **kwargs): # Example of extracting the token from a query parameter or cookie diff --git a/templates/stripe_html/fail.html b/templates/stripe_html/fail.html new file mode 100644 index 0000000..cb6e03c --- /dev/null +++ b/templates/stripe_html/fail.html @@ -0,0 +1,13 @@ + + + + + + Goodtimes + + +

+ Payment Failed +

+ + \ No newline at end of file diff --git a/templates/stripe_html/subscribe.html b/templates/stripe_html/subscribe.html new file mode 100644 index 0000000..1b38896 --- /dev/null +++ b/templates/stripe_html/subscribe.html @@ -0,0 +1,51 @@ + + + + + + + Goodtimes + + + + + + +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/templates/stripe_html/success.html b/templates/stripe_html/success.html new file mode 100644 index 0000000..729847c --- /dev/null +++ b/templates/stripe_html/success.html @@ -0,0 +1,13 @@ + + + + + + Goodtimes + + +

+ Payment Successful +

+ + \ No newline at end of file