diff --git a/lerna.json b/lerna.json index 812fa22..03ec687 100644 --- a/lerna.json +++ b/lerna.json @@ -4,7 +4,7 @@ ], "npmClient": "yarn", "useWorkspaces": true, - "version": "1.8.4", + "version": "1.8.5", "command": { "run": { "stream": true diff --git a/packages/globalpayments-3ds/package.json b/packages/globalpayments-3ds/package.json index 9b1438f..639897d 100644 --- a/packages/globalpayments-3ds/package.json +++ b/packages/globalpayments-3ds/package.json @@ -1,6 +1,6 @@ { "name": "globalpayments-3ds", - "version": "1.8.4", + "version": "1.8.5", "description": "Helper library for leveraging 3DSecure 2 for Strong Customer Authentication (SCA)", "main": "./dist/globalpayments-3ds.js", "module": "./dist/globalpayments-3ds.esm.js", @@ -23,7 +23,7 @@ "test:serve": "serve -p 7778" }, "dependencies": { - "globalpayments-lib": "^1.8.4" + "globalpayments-lib": "^1.8.5" }, "devDependencies": { "rimraf": "*", diff --git a/packages/globalpayments-3ds/src/index.ts b/packages/globalpayments-3ds/src/index.ts index 62c21e7..8fcb774 100644 --- a/packages/globalpayments-3ds/src/index.ts +++ b/packages/globalpayments-3ds/src/index.ts @@ -9,6 +9,7 @@ import { AuthenticationRequestType, AuthenticationSource, ChallengeRequestIndicator, + TransactionStatus, colorDepth, messageCategoryFromAuthenticationRequestType, } from "./enums"; @@ -161,7 +162,7 @@ export async function handleInitiateAuthentication( data: IInitiateAuthenticationResponseData, options: IChallengeWindowOptions, ) { - if (data.challengeMandated) { + if (data.challengeMandated || data.status === TransactionStatus.ChallengeRequired) { data.challenge = data.challenge || {}; if (!data.challenge.requestUrl) { diff --git a/packages/globalpayments-js-loader/package.json b/packages/globalpayments-js-loader/package.json index 71ea7c1..3714922 100644 --- a/packages/globalpayments-js-loader/package.json +++ b/packages/globalpayments-js-loader/package.json @@ -1,6 +1,6 @@ { "name": "@globalpayments/js-loader", - "version": "1.8.4", + "version": "1.8.5", "main": "./index.js", "module": "./index.js", "types": "./index.d.ts", @@ -28,7 +28,7 @@ "test:serve": "serve -p 7777" }, "dependencies": { - "@globalpayments/js": "^1.8.4" + "@globalpayments/js": "^1.8.5" }, "devDependencies": { "rimraf": "*", diff --git a/packages/globalpayments-js-web-components/package.json b/packages/globalpayments-js-web-components/package.json index 3ea4084..a0098c3 100644 --- a/packages/globalpayments-js-web-components/package.json +++ b/packages/globalpayments-js-web-components/package.json @@ -1,6 +1,6 @@ { "name": "@globalpayments/js-web-components", - "version": "1.8.4", + "version": "1.8.5", "type": "module", "main": "./lib/globalpayments-js-web-components.js", "module": "./lib/globalpayments-js-web-components.js", @@ -29,8 +29,8 @@ "test:serve": "serve -p 7777" }, "dependencies": { - "@globalpayments/js": "^1.8.4", - "@globalpayments/js-loader": "^1.8.4" + "@globalpayments/js": "^1.8.5", + "@globalpayments/js-loader": "^1.8.5" }, "devDependencies": { "rimraf": "*", diff --git a/packages/globalpayments-js/package.json b/packages/globalpayments-js/package.json index dbfed44..2b870aa 100644 --- a/packages/globalpayments-js/package.json +++ b/packages/globalpayments-js/package.json @@ -1,6 +1,6 @@ { "name": "@globalpayments/js", - "version": "1.8.4", + "version": "1.8.5", "author": "Heartland Developer Portal ", "license": "GPL-2.0", "repository": { @@ -26,7 +26,7 @@ "test:serve": "serve -p 7777" }, "dependencies": { - "globalpayments-lib": "^1.8.4" + "globalpayments-lib": "^1.8.5" }, "devDependencies": { "rimraf": "*", diff --git a/packages/globalpayments-lib/package.json b/packages/globalpayments-lib/package.json index 9965a76..8e54d56 100644 --- a/packages/globalpayments-lib/package.json +++ b/packages/globalpayments-lib/package.json @@ -1,6 +1,6 @@ { "name": "globalpayments-lib", - "version": "1.8.4", + "version": "1.8.5", "description": "Helper library for Global Payments JavaScript libraries", "main": "lib/index.js", "module": "lib/index.js",