mirror of
https://github.com/documenso/documenso
synced 2026-05-24 09:28:27 +00:00
fix: correctly set stripe customer names (#1939)
Currently the Stripe customer name is set to the organisation name, which in some cases is just the organisation name. This update makes it so it uses the owner name instead.
This commit is contained in:
parent
9b01a2318f
commit
2ee0d77870
2 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ export const createSubscriptionRoute = authenticatedProcedure
|
|||
|
||||
if (!customerId) {
|
||||
const customer = await createCustomer({
|
||||
name: organisation.name,
|
||||
name: organisation.owner.name || organisation.owner.email,
|
||||
email: organisation.owner.email,
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ export const manageSubscriptionRoute = authenticatedProcedure
|
|||
// If the customer ID is still missing create a new customer.
|
||||
if (!customerId) {
|
||||
const customer = await createCustomer({
|
||||
name: organisation.name,
|
||||
name: organisation.owner.name || organisation.owner.email,
|
||||
email: organisation.owner.email,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue