mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10: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:
@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user