#Briesma-react
1 messages · Page 1 of 1 (latest)
Hi! I think you could disable the button when the user first click on it, and then re-enable it if the call to confirmPayment returns an error.
So the component does inform React that it failed?
You can see in this example here: https://stripe.com/docs/stripe-js/react#useelements-hook
There's a if (result.error) { ... }
Oh, this is too easy. Thank you!