I am not sure if you have a cut & paste error or what but the form and script tags need some help. The actual tags should be written as:
<script></script>
<form></form>
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi followind this Jeff's tutorial https://laracasts.com/series/how-to-accept-payments-with-stripe/episodes/1
we are using
< f orm action="/your-server-side-code" method="POST" >
< s c ript
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="pk_test_ChGGi3PIuKXcrIlN7JWZtgab"
data-amount="999"
data-name="Demo Site"
data-description="Widget"
data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
data-locale="auto"
data-zip-code="true"
data-currency="gbp">
< / s cript>
< / f orm>
But for Vue the script tags are not valid. How can I rewrite the same code but to work with Stripe and Vue. Thanks
Please or to participate in this conversation.