strapi-plugin-payone-provider 5.8.26 → 5.8.27

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": "5.8.26",
3
+ "version": "5.8.27",
4
4
  "description": "Strapi plugin for Payone payment gateway integration",
5
5
  "license": "MIT",
6
6
  "maintainers": [
@@ -113,7 +113,7 @@ const preauthorization = async (strapi, params) => {
113
113
  const settings = await getSettings(strapi);
114
114
 
115
115
  // Happnes only when CC-payment and 3DS is enabled and is Pre/Authorization request
116
- if (is3dsViable(params, settings)) {
116
+ if (is3dsViable(requestParams, settings)) {
117
117
  requestParams = await perform3DSCheck(strapi, requestParams);
118
118
  if (!requestParams) throw new Error('3DS check failed');
119
119
  }
@@ -142,7 +142,7 @@ const authorization = async (strapi, params) => {
142
142
  const settings = await getSettings(strapi);
143
143
 
144
144
  // Happnes only when CC-payment and 3DS is enabled and is Pre/Authorization request
145
- if (is3dsViable(params, settings)) {
145
+ if (is3dsViable(requestParams, settings)) {
146
146
  requestParams = await perform3DSCheck(strapi, requestParams);
147
147
  if (!requestParams) throw new Error('3DS check failed');
148
148
  }
@@ -202,6 +202,8 @@ const perform3DSCheck = async (strapi, params) => {
202
202
  exiturl: params.successurl ?? '',
203
203
  });
204
204
 
205
+ console.log("3DS check result:", result);
206
+
205
207
  if (result?.errorCode || result?.errorMessage || result?.Status === 'Failed' || result?.Status === 'Invalid')
206
208
  throw new Error('3DS check failed');
207
209