Hi WeWeb community,
I’m wondering if it’s possible to build a custom payment flow using Stripe Elements directly inside WeWeb, specifically the approach outlined under the “Advanced integration” section in Stripe’s documentation:
https://docs.stripe.com/payments/quickstart
To clarify, I’m not referring to the built-in WeWeb Stripe plugin or the Stripe hosted checkout flow options, but the custom setup with Stripe.js which allows for more advanced customization options, like adjusting layout and disabling postal code collection, etc. which isn’t currently supported in the other integration methods.
I’m trying to build this with the Supabase integration (tables and edge functions) and here’s what I’ve tried so far:
- Created a valid PaymentIntent using WeWeb workflows + Supabase edge functions
- Injected the required Stripe script using WeWeb’s Custom Code
<head>
setting - Used a hardcoded valid
client_secret
in an HTML embed block for testing
The page loads and displays a “Pay now” button, but the Stripe payment form itself never renders.
Has anyone successfully built a similar integration in WeWeb, or is this a limitation of the HTML block environment? Is there anything I’m missing that might prevent this integration from working?
Any help or guidance would be much appreciated.