This commit is contained in:
Kenneth Jannette
2024-01-29 20:56:14 -06:00
parent e84e581d01
commit 37766aef68
2 changed files with 12 additions and 17 deletions

View File

@@ -189,8 +189,8 @@ const SignupPage = () => {
barNumber,
practiceArea,
email,
subscriptionId,
customerId,
//subscriptionId,
//customerId,
};
try {
@@ -217,14 +217,14 @@ const SignupPage = () => {
if (isBusy) {
return;
}
/*
const dataValues = validateUserData();
if (dataValues === null) {
return;
}
saveLeadData(dataValues);
*/
setShowSelectPlan(!showSelectPlan);
};
@@ -309,10 +309,10 @@ const SignupPage = () => {
}
// ******************** END STRIPE PAY API CALL ******************** //
const handleSignup = async () => {
if (isBusy) {
return;
}
const handleSignup = async (e) => {
e.preventDefault();
console.log("handleSignup");
const paymentDataValues = validatePaymentData();
if (paymentDataValues === null) {
return;
@@ -323,10 +323,9 @@ const SignupPage = () => {
return;
}
const planType = determinePlan(isAnnual, activeRadioOption);
//const planType = determinePlan(isAnnual, activeRadioOption);
setIsBusy(true);
if (paymentDataValues && dataValues) {
setIsBusy(true);
try {
const userCredential = await createUserWithEmailAndPassword(
auth,
@@ -342,7 +341,7 @@ const SignupPage = () => {
dataValues
);
console.log(
"----------------------------->>>>paymentResponse",
"----------------------------->>>>>>>>>>>>>>>>>paymentResponse",
paymentResponse
);
if (paymentResponse === false) {