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