more
This commit is contained in:
@@ -109,16 +109,18 @@ const SignupPage = () => {
|
||||
if (isBusy) {
|
||||
return;
|
||||
}
|
||||
|
||||
const dataValues = validateData();
|
||||
if (dataValues === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
setShowPaymentModal(true);
|
||||
};
|
||||
|
||||
async function handleStripeAuthorization() {}
|
||||
async function handleStripeAuthorization(paymentDataValues) {
|
||||
//Do calls to Stripe API
|
||||
// if success, return some truthy value or
|
||||
// handleFailure()
|
||||
}
|
||||
|
||||
const handleSignUp = async (e) => {
|
||||
e.preventDefault();
|
||||
@@ -130,8 +132,9 @@ const SignupPage = () => {
|
||||
if (dataValues === null) {
|
||||
return;
|
||||
}
|
||||
//const paymentSuccess = handleStripeAuthorization(paymentDataValues)
|
||||
setIsBusy(true);
|
||||
const paymentSuccess = "true"; // handleStripeAuthorization(paymentDataValues)
|
||||
if (paymentSuccess) {
|
||||
try {
|
||||
const userCredential = await createUserWithEmailAndPassword(
|
||||
auth,
|
||||
@@ -147,6 +150,7 @@ const SignupPage = () => {
|
||||
error.message || "Sorry, something went wrong. Please try again."
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user