Initial commit: Craft2Prints with Stages 1-3
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import Stripe from 'stripe';
|
||||
|
||||
if (!process.env.STRIPE_SECRET_KEY) {
|
||||
console.warn('STRIPE_SECRET_KEY is not set — checkout will fail until you add it to .env');
|
||||
}
|
||||
|
||||
export const stripe = new Stripe(process.env.STRIPE_SECRET_KEY ?? '', {
|
||||
apiVersion: '2024-06-20',
|
||||
});
|
||||
Reference in New Issue
Block a user