more
This commit is contained in:
@@ -21,8 +21,6 @@ const PaymentModal = ({
|
|||||||
fieldsChunkSize,
|
fieldsChunkSize,
|
||||||
numberOfAccountsToAdd,
|
numberOfAccountsToAdd,
|
||||||
}) => {
|
}) => {
|
||||||
const monthlyAddAccountPrice = selectedPlan[0].pricing[2].amount;
|
|
||||||
|
|
||||||
const monthlySubscriptionPriceToday = selectedPlan[0].pricing[0].amount;
|
const monthlySubscriptionPriceToday = selectedPlan[0].pricing[0].amount;
|
||||||
const annualSubscriptionPriceToday = selectedPlan[0].pricing[1].amount * 12;
|
const annualSubscriptionPriceToday = selectedPlan[0].pricing[1].amount * 12;
|
||||||
|
|
||||||
@@ -53,6 +51,12 @@ const PaymentModal = ({
|
|||||||
|
|
||||||
const totalToday = amountToday + extraAccountsPrice;
|
const totalToday = amountToday + extraAccountsPrice;
|
||||||
|
|
||||||
|
const handleSignupClick = () => {
|
||||||
|
paymentfields.forEach((field) => {
|
||||||
|
console.log("field", field);
|
||||||
|
});
|
||||||
|
handleSignup();
|
||||||
|
};
|
||||||
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>
|
||||||
@@ -159,7 +163,7 @@ const PaymentModal = ({
|
|||||||
<Button
|
<Button
|
||||||
disabled={isBusy}
|
disabled={isBusy}
|
||||||
className="primary-button"
|
className="primary-button"
|
||||||
onClick={handleSignup}
|
onClick={handleSignupClick}
|
||||||
labelText="Signup"
|
labelText="Signup"
|
||||||
/>
|
/>
|
||||||
</Modal.Footer>
|
</Modal.Footer>
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ const NavbarElement = (props) => {
|
|||||||
|
|
||||||
function packUpAndLeave(link) {
|
function packUpAndLeave(link) {
|
||||||
navToggle();
|
navToggle();
|
||||||
|
|
||||||
handleClick(link);
|
handleClick(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,12 +45,12 @@ const SignupPage = () => {
|
|||||||
getFormDataDefaults(paymentfields)
|
getFormDataDefaults(paymentfields)
|
||||||
);
|
);
|
||||||
const [showPaymentModal, setShowPaymentModal] = useState(false);
|
const [showPaymentModal, setShowPaymentModal] = useState(false);
|
||||||
|
/*
|
||||||
const [showSelectPlan, setShowSelectPlan] = useState(
|
const [showSelectPlan, setShowSelectPlan] = useState(
|
||||||
isUpgrade ? true : false
|
isUpgrade ? true : false
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
//const [showSelectPlan, setShowSelectPlan] = useState(true);
|
const [showSelectPlan, setShowSelectPlan] = useState(true);
|
||||||
const [activeRadioOption, setActiveRadioOption] = useState("partner");
|
const [activeRadioOption, setActiveRadioOption] = useState("partner");
|
||||||
const [selectedPlan, setSelectedPlan] = useState([signupRadioFields[1]]);
|
const [selectedPlan, setSelectedPlan] = useState([signupRadioFields[1]]);
|
||||||
const stripe = new Stripe(stripeApiKey);
|
const stripe = new Stripe(stripeApiKey);
|
||||||
@@ -400,7 +400,7 @@ const SignupPage = () => {
|
|||||||
setShowPaymentModal(false);
|
setShowPaymentModal(false);
|
||||||
window.scrollTo({ top: 0, behavior: "smooth" });
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
||||||
setIsBusy(true);
|
setIsBusy(true);
|
||||||
|
console.log("-------------------->paymentDataValues, dataValues");
|
||||||
try {
|
try {
|
||||||
const data = await handleStripeAuthorization(
|
const data = await handleStripeAuthorization(
|
||||||
paymentDataValues,
|
paymentDataValues,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ export const signupRadioFields = [
|
|||||||
label: "Of Counsel",
|
label: "Of Counsel",
|
||||||
value: "ofCounsel",
|
value: "ofCounsel",
|
||||||
description: [
|
description: [
|
||||||
"One document/one-time fee",
|
"Single document/one-time fee",
|
||||||
"Documents conform with state rules",
|
"Documents conform with state rules",
|
||||||
"Intellidraft AI - downloadable document in minutes",
|
"Intellidraft AI - downloadable document in minutes",
|
||||||
"24/7 support",
|
"24/7 support",
|
||||||
@@ -12,8 +12,9 @@ export const signupRadioFields = [
|
|||||||
details: "",
|
details: "",
|
||||||
docsAllowedPerMonth: 1,
|
docsAllowedPerMonth: 1,
|
||||||
pricing: [
|
pricing: [
|
||||||
{ type: "monthly", amount: 59 },
|
{ type: "one-time", amount: 59 },
|
||||||
{ type: "annDiscount", amount: 59 },
|
{ type: "annDiscount", amount: 59 },
|
||||||
|
{ type: "additionalAccount", amount: 0 },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user