mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 01:01:49 +10:00
feat: add organisations (#1820)
This commit is contained in:
13
packages/ee/server-only/stripe/create-customer.ts
Normal file
13
packages/ee/server-only/stripe/create-customer.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { stripe } from '@documenso/lib/server-only/stripe';
|
||||
|
||||
type CreateCustomerOptions = {
|
||||
name: string;
|
||||
email: string;
|
||||
};
|
||||
|
||||
export const createCustomer = async ({ name, email }: CreateCustomerOptions) => {
|
||||
return await stripe.customers.create({
|
||||
name,
|
||||
email,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user