"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});exports.useStripe=void 0;const stripe_1=__importDefault(require("stripe")),error_1=require("@b/utils/error"),stripeApiKey=process.env.APP_STRIPE_SECRET_KEY,useStripe=()=>{if(!stripeApiKey)throw(0,error_1.createError)({statusCode:503,message:"Stripe API key is not set in environment variables."});return new stripe_1.default(stripeApiKey)};exports.useStripe=useStripe;