more
This commit is contained in:
@@ -30,7 +30,7 @@ import PaymentModal from "../Modals/PaymentModal";
|
|||||||
import Radio from "../../pageElements/Radio";
|
import Radio from "../../pageElements/Radio";
|
||||||
import "../../styles/signup.scss";
|
import "../../styles/signup.scss";
|
||||||
import Stripe from "stripe";
|
import Stripe from "stripe";
|
||||||
import { stripeApiKey } from "../../secrets";
|
import { stripeApiKey, marchEmailPrm } from "../../secrets";
|
||||||
|
|
||||||
const SignupPage = () => {
|
const SignupPage = () => {
|
||||||
const { isUpgrade, currentPlan } = useParams();
|
const { isUpgrade, currentPlan } = useParams();
|
||||||
@@ -43,12 +43,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 [isAnnual, setIsAnnual] = useState(1);
|
const [isAnnual, setIsAnnual] = useState(1);
|
||||||
@@ -347,6 +347,7 @@ const SignupPage = () => {
|
|||||||
setShowPaymentModal(false);
|
setShowPaymentModal(false);
|
||||||
window.scrollTo({ top: 0, behavior: "smooth" });
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
||||||
setIsBusy(true);
|
setIsBusy(true);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const data = await handleStripeAuthorization(
|
const data = await handleStripeAuthorization(
|
||||||
paymentDataValues,
|
paymentDataValues,
|
||||||
|
|||||||
Reference in New Issue
Block a user