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 formspree.io.

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: https://soundsirius.digitalpress.blog/donation/
Formspree tutorial: https://formspree.io/blog/custom-payment-stripe/

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