more
This commit is contained in:
@@ -217,12 +217,12 @@ const SignupPage = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
const userDataValues = validateUserData();
|
||||
const dataValues = validateUserData();
|
||||
if (dataValues === null) {
|
||||
return;
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
const userDataValues = {
|
||||
barNumber: "232323",
|
||||
city: "broolyn",
|
||||
@@ -237,7 +237,8 @@ const SignupPage = () => {
|
||||
telephone: "(313) 555-5555",
|
||||
zipCode: "12345",
|
||||
};
|
||||
saveLeadData(userDataValues);
|
||||
*/
|
||||
saveLeadData(dataValues);
|
||||
setShowSelectPlan(!showSelectPlan);
|
||||
};
|
||||
|
||||
@@ -265,7 +266,7 @@ const SignupPage = () => {
|
||||
let error = false;
|
||||
let subscriptionId = null;
|
||||
let customerId = null;
|
||||
|
||||
console.log("~~~~~~~~~~~~~~~~~~~~~~~~handleStripeAuthorization fired");
|
||||
const token = await stripe.tokens.create({
|
||||
card: {
|
||||
number: paymentDataValues.cardNumber,
|
||||
@@ -280,6 +281,7 @@ const SignupPage = () => {
|
||||
});
|
||||
|
||||
try {
|
||||
console.log("got to create-subscription try block");
|
||||
let response = await fetch(`${apiUrl}/create-subscription`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
@@ -333,7 +335,7 @@ const SignupPage = () => {
|
||||
if (dataValues === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("dataValues in handleSignup", dataValues);
|
||||
const planType = determinePlan(isAnnual, activeRadioOption);
|
||||
setIsBusy(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user