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