feat: customer name

This commit is contained in:
Nevo David 2024-08-16 23:38:48 +07:00
parent cb30d5e324
commit d8173b718e
1 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,9 @@ export class StripeService {
return organization.paymentId;
}
const customer = await stripe.customers.create();
const customer = await stripe.customers.create({
name: organization.name,
});
await this._subscriptionService.updateCustomerId(
organization.id,
customer.id