Skip to content

The Open Source DocuSign Alternative.

282 B
Raw Blame
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,
  });
};