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,
|
||||
|
||||
Reference in New Issue
Block a user