Stripe checkout custom amount

Hello Webflow legends,

I’m hoping someone out there can help me with a little custom code. I run a not-for-profit, and our funding model relies on customers being able to select a custom donation amount on our website.

I would love to find a way to utilise Stripe Elements to facilitate this.

Any help would be so appreciated!

Cheers,
Josh

1 Like

Try this

yeah, but is it possible to do this without another application? I’m on the programs i’m on because they promised the world as far as being able to do what is needed – yet we’re always only 3 more integrations to sign up and pay for away from this thing actually doing what is needed.

possible to do this in house?

You do need a server-side component to make Stripe elements work. One of the steps according to Stripe’s doc is Fetch a PaymentIntent. This returns the clientSecret to initialize the Stripe Elements UI.

So do you have a server component for your application that can perform this step? If yes, then you can just use JavaScript to work with the Stripe Elements. The link I attached has the details.