19 lines
559 B
TypeScript
19 lines
559 B
TypeScript
import Stripe from 'stripe';
|
|
|
|
export const stripe = new Stripe(
|
|
process.env.STRIPE_SECRET_KEY_LIVE ?? process.env.STRIPE_SECRET_KEY ?? '',
|
|
{
|
|
// https://github.com/stripe/stripe-node#configuration
|
|
// https://stripe.com/docs/api/versioning
|
|
// @ts-ignore
|
|
apiVersion: null,
|
|
// Register this as an official Stripe plugin.
|
|
// https://stripe.com/docs/building-plugins#setappinfo
|
|
appInfo: {
|
|
name: 'Horizon AI Boilerplate',
|
|
version: '1.1.0',
|
|
url: 'https://github.com/horizon-ui/shadcn-nextjs-boilerplate'
|
|
}
|
|
}
|
|
);
|