From dbb12311b4845b9ba5dbcfacc8fc433f6959b9b5 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Mon, 29 Jan 2024 21:29:49 -0600 Subject: [PATCH] more --- src/Components/SignupPage/SignupPage.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Components/SignupPage/SignupPage.js b/src/Components/SignupPage/SignupPage.js index 2df11ae..9c80144 100644 --- a/src/Components/SignupPage/SignupPage.js +++ b/src/Components/SignupPage/SignupPage.js @@ -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);