From f0d9af3811c9e0f64ec17b510858e4fde095f2cc Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 4 Mar 2021 14:51:22 +0100 Subject: [PATCH] payments --- packages/dashboard/src/pages/api/stripe/createCheckoutSession.js | 1 + 1 file changed, 1 insertion(+) 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 } });