Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

charlieBrown's avatar

embebed form in stripe not popping up

I'm trying to set up Stripe into my project but the embebed form never pops out.

view

@foreach ($products as $product)
            <form action="{{ route('pay', $product->id) }}" method="POST">
                {{ csrf_field() }}
                <script
                        src="https://checkout.stripe.com/checkout.js" class="stripe-button"
                        data-key="xxx"
                        data-amount="999"
                        data-name="EXAMPLE.COM"
                        data-description="Widget"
                        data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
                        data-locale="auto"
                        data-zip-code="true"
                        data-currency="eur">
                </script>
            </form>
            @endforeach 
0 likes
2 replies
christiangerdes's avatar

I believe you have to import their checkout javascript library, but I'm not sure. Maybe check the console for clues

Please or to participate in this conversation.