()
const [isLoading, setIsLoading] = useState(false)
+ const [isPayButtonVisible, setIsPayButtonVisible] = useState(false)
+
useEffect(() => {
if (!stripe || !clientSecret) return
@@ -145,20 +154,28 @@ const CheckoutForm = ({
setMessage('An unexpected error occured.')
}
+ const showPayButton = () => setIsPayButtonVisible(true)
+
return (