strapi-plugin-payone-provider 4.6.15 → 4.6.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-payone-provider",
3
- "version": "4.6.15",
3
+ "version": "4.6.16",
4
4
  "description": "Strapi plugin for Payone payment gateway integration",
5
5
  "license": "MIT",
6
6
  "maintainers": [
@@ -258,14 +258,11 @@ module.exports = ({ strapi }) => ({
258
258
 
259
259
  async handleTransactionStatus(ctx) {
260
260
  try {
261
- if (ctx.state.payoneAllowed) {
262
- const notificationData = ctx.request.body || {};
263
- await getPayoneService(strapi).processTransactionStatus(notificationData);
264
- } else {
265
- console.warn("[Payone] Notification blocked by policy", {
266
- ip: ctx.request.ip,
267
- });
268
- }
261
+ const notificationData = ctx.request.body || {};
262
+ await getPayoneService(strapi).processTransactionStatus(notificationData);
263
+ console.warn("[Payone] Notification Status", {
264
+ ip: ctx.request.ip,
265
+ });
269
266
  } catch (error) {
270
267
  strapi.log.error("[Payone TransactionStatus] Error:", error);
271
268
  }
@@ -274,6 +271,4 @@ module.exports = ({ strapi }) => ({
274
271
  ctx.body = "TSOK";
275
272
  ctx.type = "text/plain";
276
273
  }
277
-
278
-
279
274
  });
@@ -168,7 +168,7 @@ module.exports = {
168
168
  path: "/transaction-status",
169
169
  handler: "payone.handleTransactionStatus",
170
170
  config: {
171
- policies: ["plugin::strapi-plugin-payone-provider.is-payone-notification"],
171
+ // policies: ["plugin::strapi-plugin-payone-provider.is-payone-notification"],
172
172
  auth: false
173
173
  }
174
174
  },