mirror of
https://github.com/rjNemo/villafleurie
synced 2026-06-06 02:16:47 +00:00
fix eventlistener
This commit is contained in:
parent
c778eaf8e2
commit
738971ca2d
1 changed files with 38 additions and 38 deletions
|
|
@ -44,9 +44,9 @@
|
||||||
</section>
|
</section>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
const stripe = Stripe('pk_test_dRAhoGxhyiGRjuKRMityEI5r');
|
const stripe = Stripe('pk_test_dRAhoGxhyiGRjuKRMityEI5r');
|
||||||
const checkoutForm = document.getElementById('checkout-form');
|
const checkoutButton = document.getElementById('checkout-button');
|
||||||
|
|
||||||
checkoutForm.addEventListener('submit', (e) => {
|
checkoutButton.addEventListener('submit', (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const form = e.currentTarget;
|
const form = e.currentTarget;
|
||||||
const formData = new FormData(form);
|
const formData = new FormData(form);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue