Update JS for stripe autopay to fetch value of Publishable Key from hidden form element instead of using hard coded key

This commit is contained in:
johnnyq 2025-01-14 16:39:34 -05:00
parent 47657e462a
commit 5d3b4c8ff7
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
// Initialize Stripe.js
const stripe = Stripe('pk_test_51OTpmkHRGkC845Mqz0zM2A1pjnnXwOyD5tyPzWnRwVthuizNjuBIjoYgMHBMLQBuegrUXQpIyX4yr1fNMo7QzCs500bBnFJgEr');
const stripe = Stripe(document.getElementById("stripe_publishable_key").value);
initialize();