more
This commit is contained in:
@@ -53,10 +53,6 @@ const PaymentModal = ({
|
|||||||
|
|
||||||
const totalToday = amountToday + extraAccountsPrice;
|
const totalToday = amountToday + extraAccountsPrice;
|
||||||
|
|
||||||
function handleValidateAndPay() {
|
|
||||||
handleSignup(totalToday);
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal show="true" size="lg">
|
<Modal show="true" size="lg">
|
||||||
<Modal.Header className="payment-modal-header" closeButton>
|
<Modal.Header className="payment-modal-header" closeButton>
|
||||||
@@ -151,7 +147,7 @@ const PaymentModal = ({
|
|||||||
<Button
|
<Button
|
||||||
disabled={isBusy}
|
disabled={isBusy}
|
||||||
className="primary-button"
|
className="primary-button"
|
||||||
onClick={handleValidateAndPay}
|
onClick={handleSignup}
|
||||||
labelText="Signup"
|
labelText="Signup"
|
||||||
/>
|
/>
|
||||||
</Modal.Footer>
|
</Modal.Footer>
|
||||||
|
|||||||
@@ -189,8 +189,8 @@ const SignupPage = () => {
|
|||||||
barNumber,
|
barNumber,
|
||||||
practiceArea,
|
practiceArea,
|
||||||
email,
|
email,
|
||||||
subscriptionId,
|
//subscriptionId,
|
||||||
customerId,
|
//customerId,
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -217,14 +217,14 @@ const SignupPage = () => {
|
|||||||
if (isBusy) {
|
if (isBusy) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
const dataValues = validateUserData();
|
const dataValues = validateUserData();
|
||||||
if (dataValues === null) {
|
if (dataValues === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
saveLeadData(dataValues);
|
saveLeadData(dataValues);
|
||||||
*/
|
|
||||||
setShowSelectPlan(!showSelectPlan);
|
setShowSelectPlan(!showSelectPlan);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -309,10 +309,10 @@ const SignupPage = () => {
|
|||||||
}
|
}
|
||||||
// ******************** END STRIPE PAY API CALL ******************** //
|
// ******************** END STRIPE PAY API CALL ******************** //
|
||||||
|
|
||||||
const handleSignup = async () => {
|
const handleSignup = async (e) => {
|
||||||
if (isBusy) {
|
e.preventDefault();
|
||||||
return;
|
console.log("handleSignup");
|
||||||
}
|
|
||||||
const paymentDataValues = validatePaymentData();
|
const paymentDataValues = validatePaymentData();
|
||||||
if (paymentDataValues === null) {
|
if (paymentDataValues === null) {
|
||||||
return;
|
return;
|
||||||
@@ -323,10 +323,9 @@ const SignupPage = () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const planType = determinePlan(isAnnual, activeRadioOption);
|
//const planType = determinePlan(isAnnual, activeRadioOption);
|
||||||
|
|
||||||
if (paymentDataValues && dataValues) {
|
|
||||||
setIsBusy(true);
|
setIsBusy(true);
|
||||||
|
if (paymentDataValues && dataValues) {
|
||||||
try {
|
try {
|
||||||
const userCredential = await createUserWithEmailAndPassword(
|
const userCredential = await createUserWithEmailAndPassword(
|
||||||
auth,
|
auth,
|
||||||
@@ -342,7 +341,7 @@ const SignupPage = () => {
|
|||||||
dataValues
|
dataValues
|
||||||
);
|
);
|
||||||
console.log(
|
console.log(
|
||||||
"----------------------------->>>>paymentResponse",
|
"----------------------------->>>>>>>>>>>>>>>>>paymentResponse",
|
||||||
paymentResponse
|
paymentResponse
|
||||||
);
|
);
|
||||||
if (paymentResponse === false) {
|
if (paymentResponse === false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user