payments
This commit is contained in:
parent
bf2e3a4954
commit
f0d9af3811
|
@ -14,6 +14,7 @@ const getStripeCustomer = async (user, authorization) => {
|
||||||
const customer = stripe.customers.create();
|
const customer = stripe.customers.create();
|
||||||
|
|
||||||
console.log(customer);
|
console.log(customer);
|
||||||
|
console.log(user);
|
||||||
|
|
||||||
// update user instance and include the customer id once created
|
// update user instance and include the customer id once created
|
||||||
await got.put(`http://accounts:3000/user`, { headers: { authorization }, json: { stripeCustomerId: customer.id } });
|
await got.put(`http://accounts:3000/user`, { headers: { authorization }, json: { stripeCustomerId: customer.id } });
|
||||||
|
|
Reference in New Issue