Custom amount for stripe donations

Iโ€™m trying to make a stripe donation form using formspree.

It works fine but the amount is hardcoded and I need the reader to enter a custom amount. Stripe provided me with the HTML but now I need the Javascript so that the amount entered by the user is charged and I need to bypass the hardcoded amount in

I looked at the documentation and itโ€™s not very clear. I need a real small js snippet to include into my page that will take care of the custom amount.

My donation page:
Formspree tutorial:

Maybe using some more simplified alternatives is the best route? Have you seen Buy Me A Coffee or These would be easier to manage and can be linked to directly in your site :blush: