From 685ee8a9fb9ac657b37dadb78276fbf7831883b3 Mon Sep 17 00:00:00 2001 From: rizwanisready Date: Fri, 24 May 2024 21:49:08 +0530 Subject: [PATCH] existing subscription validation 8 --- templates/stripe_html/index.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/templates/stripe_html/index.html b/templates/stripe_html/index.html index 23afde9..42b505e 100644 --- a/templates/stripe_html/index.html +++ b/templates/stripe_html/index.html @@ -52,9 +52,6 @@
-
- -
@@ -92,7 +89,9 @@
- +
+ +
@@ -548,7 +547,12 @@ }) .catch((error) => { console.error("Error:", error); - document.getElementById('already-active-subscription').innerText = "Error: " + error.message; + const errorMessageElement = document.getElementById('error-message'); + if (errorMessageElement) { + errorMessageElement.innerText = "Error: " + error.message; // Display the error in the specific div + errorMessageElement.style.color = 'red'; // Set text color to red + errorMessageElement.style.fontWeight = 'bold'; // Set text to bold + } button.disabled = false; }); });