From bf2e3a495481b5444b846f13325a1b081e591d2c Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 4 Mar 2021 14:51:10 +0100 Subject: [PATCH] payments --- .../dashboard/src/pages/api/stripe/createCheckoutSession.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dashboard/src/pages/api/stripe/createCheckoutSession.js b/packages/dashboard/src/pages/api/stripe/createCheckoutSession.js index 38255e59..bd887350 100644 --- a/packages/dashboard/src/pages/api/stripe/createCheckoutSession.js +++ b/packages/dashboard/src/pages/api/stripe/createCheckoutSession.js @@ -13,12 +13,12 @@ const getStripeCustomer = async (user, authorization) => { const customer = stripe.customers.create(); - console.log("created"); + console.log(customer); // update user instance and include the customer id once created await got.put(`http://accounts:3000/user`, { headers: { authorization }, json: { stripeCustomerId: customer.id } }); - console.log("user updated"); + console.log("---"); return customer; };