diff --git a/packages/dashboard/src/pages/api/stripe/createCheckoutSession.js b/packages/dashboard/src/pages/api/stripe/createCheckoutSession.js index bd887350..814f575b 100644 --- a/packages/dashboard/src/pages/api/stripe/createCheckoutSession.js +++ b/packages/dashboard/src/pages/api/stripe/createCheckoutSession.js @@ -14,6 +14,7 @@ const getStripeCustomer = async (user, authorization) => { const customer = stripe.customers.create(); console.log(customer); + console.log(user); // update user instance and include the customer id once created await got.put(`http://accounts:3000/user`, { headers: { authorization }, json: { stripeCustomerId: customer.id } });