This commit is contained in:
Karol Wypchlo 2021-03-04 14:51:22 +01:00
parent bf2e3a4954
commit f0d9af3811
1 changed files with 1 additions and 0 deletions

View File

@ -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 } });