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

View File

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