mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 16:51:38 +10:00
14 lines
282 B
TypeScript
14 lines
282 B
TypeScript
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,
|
|
});
|
|
};
|