@@ -156,23 +156,17 @@ const SignupPage = () => {
|
|||||||
authId,
|
authId,
|
||||||
dataValues,
|
dataValues,
|
||||||
customerId,
|
customerId,
|
||||||
subscriptionId,
|
|
||||||
subscriptionCreated,
|
subscriptionCreated,
|
||||||
subscriptionPeriodStart,
|
subscriptionPeriodStart,
|
||||||
subscriptionPeriodEnd
|
subscriptionPeriodEnd,
|
||||||
|
subscriptionId
|
||||||
) {
|
) {
|
||||||
const appUserId = uuidv4();
|
const appUserId = uuidv4();
|
||||||
const firmId = uuidv4();
|
const firmId = uuidv4();
|
||||||
const fbAuthUid = authId;
|
const fbAuthUid = authId;
|
||||||
const plan = selectedPlan;
|
const plan = selectedPlan;
|
||||||
const docsAllowed =
|
const docsAllowedPerMonth = selectedPlan[0].docsAllowedPerMonth;
|
||||||
plan === "associate"
|
|
||||||
? 1
|
|
||||||
: plan === "partner"
|
|
||||||
? 3
|
|
||||||
: plan === "unlimited"
|
|
||||||
? 4000
|
|
||||||
: 0;
|
|
||||||
const docsGenerated = 0;
|
const docsGenerated = 0;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
@@ -194,7 +188,7 @@ const SignupPage = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const userData = {
|
const userData = {
|
||||||
docsAllowed,
|
docsAllowedPerMonth,
|
||||||
docsGenerated,
|
docsGenerated,
|
||||||
appUserId,
|
appUserId,
|
||||||
fbAuthUid,
|
fbAuthUid,
|
||||||
@@ -370,12 +364,6 @@ const SignupPage = () => {
|
|||||||
|
|
||||||
const user = userCredential.user;
|
const user = userCredential.user;
|
||||||
dataValues = { ...dataValues, ...data };
|
dataValues = { ...dataValues, ...data };
|
||||||
console.log(
|
|
||||||
"customerId, subscriptionId subscriptionCreated, in handleSignup right before saveUserData",
|
|
||||||
customerId,
|
|
||||||
subscriptionId,
|
|
||||||
subscriptionCreated
|
|
||||||
);
|
|
||||||
await saveUserData(
|
await saveUserData(
|
||||||
user.uid,
|
user.uid,
|
||||||
dataValues,
|
dataValues,
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export const signupRadioFields = [
|
|||||||
"First month free!",
|
"First month free!",
|
||||||
],
|
],
|
||||||
details: "",
|
details: "",
|
||||||
|
docsAllowedPerMonth: 1,
|
||||||
pricing: [
|
pricing: [
|
||||||
{ type: "monthly", amount: 69 },
|
{ type: "monthly", amount: 69 },
|
||||||
{ type: "annDiscount", amount: 52 },
|
{ type: "annDiscount", amount: 52 },
|
||||||
@@ -29,6 +30,7 @@ export const signupRadioFields = [
|
|||||||
"24/7 support",
|
"24/7 support",
|
||||||
],
|
],
|
||||||
details: "",
|
details: "",
|
||||||
|
docsAllowedPerMonth: 3,
|
||||||
pricing: [
|
pricing: [
|
||||||
{ type: "monthly", amount: 99 },
|
{ type: "monthly", amount: 99 },
|
||||||
{ type: "annDiscount", amount: 89 },
|
{ type: "annDiscount", amount: 89 },
|
||||||
@@ -46,6 +48,7 @@ export const signupRadioFields = [
|
|||||||
"Up to 8 additional accounts at $39/each",
|
"Up to 8 additional accounts at $39/each",
|
||||||
],
|
],
|
||||||
details: "",
|
details: "",
|
||||||
|
docsAllowedPerMonth: 50000,
|
||||||
pricing: [
|
pricing: [
|
||||||
{ type: "monthly", amount: 149 },
|
{ type: "monthly", amount: 149 },
|
||||||
{ type: "annDiscount", amount: 129 },
|
{ type: "annDiscount", amount: 129 },
|
||||||
|
|||||||
Reference in New Issue
Block a user