I'm using formspree.io stripe donation form. Works fine but the amount is hardcoded and the visitor can't change it. I need to be able to provide a custom amount. Stripe gave me the html for the custom amount but now I need the js code and I haven't been able to spot the code in stripe doc. Anyone has a clue about that js code that will bypass the hardcoded amount?
Asked
Active
Viewed 84 times
0
-
Formspree appears to use a unique endpoint for each Amount you want to charge, so you'd need to set up different endpoints for different amounts (nothing you modify on the frontend/JS will change this, by the look of it). You likely should ask Formspring directly and see if they have an offering with a custom amount per call. – taintedzodiac May 27 '20 at 17:52
-
they are a bit slow to answer :) – Nicolas Sursock May 27 '20 at 19:00