From 5d3b4c8ff7cff26153caf65374c3b3fd74f05554 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 14 Jan 2025 16:39:34 -0500 Subject: [PATCH] Update JS for stripe autopay to fetch value of Publishable Key from hidden form element instead of using hard coded key --- js/autopay_setup_stripe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/autopay_setup_stripe.js b/js/autopay_setup_stripe.js index d0787f1b..8b67a849 100644 --- a/js/autopay_setup_stripe.js +++ b/js/autopay_setup_stripe.js @@ -1,5 +1,5 @@ // Initialize Stripe.js -const stripe = Stripe('pk_test_51OTpmkHRGkC845Mqz0zM2A1pjnnXwOyD5tyPzWnRwVthuizNjuBIjoYgMHBMLQBuegrUXQpIyX4yr1fNMo7QzCs500bBnFJgEr'); +const stripe = Stripe(document.getElementById("stripe_publishable_key").value); initialize();