mirror of
https://github.com/itflow-org/itflow
synced 2026-03-04 12:54:51 +00:00
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:
@@ -1,5 +1,5 @@
|
|||||||
// Initialize Stripe.js
|
// Initialize Stripe.js
|
||||||
const stripe = Stripe('pk_test_51OTpmkHRGkC845Mqz0zM2A1pjnnXwOyD5tyPzWnRwVthuizNjuBIjoYgMHBMLQBuegrUXQpIyX4yr1fNMo7QzCs500bBnFJgEr');
|
const stripe = Stripe(document.getElementById("stripe_publishable_key").value);
|
||||||
|
|
||||||
initialize();
|
initialize();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user