This commit is contained in:
Kenneth Jannette
2024-01-29 21:29:49 -06:00
parent acb1daece6
commit dbb12311b4

View File

@@ -267,7 +267,7 @@ const SignupPage = () => {
const type = selectedPlan[0].value ? selectedPlan[0].value : null;
try {
let response = await fetch(`${apiUrl}/create-subscription`, {
const response = await fetch(`${apiUrl}/create-subscription`, {
method: "POST",
headers: {
"Content-Type": "application/json",
@@ -284,14 +284,14 @@ const SignupPage = () => {
}),
});
response = await response.json();
const data = await response.json();
subscriptionId = response.subscriptionId;
customerId = response.customerId;
console.log("data in stripe auth call -------------++++++++++++++", data);
//subscriptionId = response.subscriptionId;
//customerId = response.customerId;
return {
subscriptionId,
//customerId,
data,
};
} catch (error) {
console.log(error);