diff --git a/server/services/stripeService.js b/server/services/stripeService.js index 4420f7a..7efdc25 100644 --- a/server/services/stripeService.js +++ b/server/services/stripeService.js @@ -191,6 +191,10 @@ module.exports = ({ strapi }) => ({ async sendDataToCallbackUrl(session) { try { const stripeSettings = await this.initialize(); + + // Return if no callbackUrl is set + if (!stripeSettings.callbackUrl) return; + await axiosInstance.post(stripeSettings.callbackUrl, session); } catch (error) { throw new ApplicationError(error.message);