diff --git a/server/services/stripeService.js b/server/services/stripeService.js index 7de6f71..2516743 100644 --- a/server/services/stripeService.js +++ b/server/services/stripeService.js @@ -119,13 +119,6 @@ module.exports = ({ strapi }) => ({ }, async deleteProduct(productId, stripeProductId) { try { - const stripeSettings = await this.initialize(); - let stripe; - if (stripeSettings.isLiveMode) { - stripe = new Stripe(stripeSettings.stripeLiveSecKey); - } else { - stripe = new Stripe(stripeSettings.stripeTestSecKey); - } const response = await strapi .query('plugin::strapi-stripe.ss-product') .delete({ where: { id: productId } });