mirror of https://github.com/itflow-org/itflow
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:
parent
47657e462a
commit
5d3b4c8ff7
|
|
@ -1,5 +1,5 @@
|
|||
// Initialize Stripe.js
|
||||
const stripe = Stripe('pk_test_51OTpmkHRGkC845Mqz0zM2A1pjnnXwOyD5tyPzWnRwVthuizNjuBIjoYgMHBMLQBuegrUXQpIyX4yr1fNMo7QzCs500bBnFJgEr');
|
||||
const stripe = Stripe(document.getElementById("stripe_publishable_key").value);
|
||||
|
||||
initialize();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue