diff --git a/src/Checkout/Payment/Payment.js b/src/Checkout/Payment/Payment.js index a605b6f..f5c3ebd 100644 --- a/src/Checkout/Payment/Payment.js +++ b/src/Checkout/Payment/Payment.js @@ -12,6 +12,8 @@ function Payment() { const stripe = useStripe(); const elements = useElements(); + const [succeeded, setSucceed] = useState(false); + const [processing, setProcessing] = useState(""); const [error, setError] = useState(null); const [disabled, setDisabled] = useState(true); @@ -70,7 +72,12 @@ function Payment() { thousandSeparator={true} prefix={"$"} /> + + + {error &&
{error}
}