Skip to content

Commit

Permalink
Merge pull request #45 from slogsdon/3ds-challenge-tweak
Browse files Browse the repository at this point in the history
3ds challenge tweak
  • Loading branch information
securesubmit-buildmaster authored Mar 26, 2021
2 parents 4d597e7 + 3ef36df commit 20cc8a7
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "1.8.4",
"version": "1.8.5",
"command": {
"run": {
"stream": true
Expand Down
4 changes: 2 additions & 2 deletions packages/globalpayments-3ds/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -23,7 +23,7 @@
"test:serve": "serve -p 7778"
},
"dependencies": {
"globalpayments-lib": "^1.8.4"
"globalpayments-lib": "^1.8.5"
},
"devDependencies": {
"rimraf": "*",
Expand Down
3 changes: 2 additions & 1 deletion packages/globalpayments-3ds/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
AuthenticationRequestType,
AuthenticationSource,
ChallengeRequestIndicator,
TransactionStatus,
colorDepth,
messageCategoryFromAuthenticationRequestType,
} from "./enums";
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions packages/globalpayments-js-loader/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -28,7 +28,7 @@
"test:serve": "serve -p 7777"
},
"dependencies": {
"@globalpayments/js": "^1.8.4"
"@globalpayments/js": "^1.8.5"
},
"devDependencies": {
"rimraf": "*",
Expand Down
6 changes: 3 additions & 3 deletions packages/globalpayments-js-web-components/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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": "*",
Expand Down
4 changes: 2 additions & 2 deletions packages/globalpayments-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@globalpayments/js",
"version": "1.8.4",
"version": "1.8.5",
"author": "Heartland Developer Portal <[email protected]>",
"license": "GPL-2.0",
"repository": {
Expand All @@ -26,7 +26,7 @@
"test:serve": "serve -p 7777"
},
"dependencies": {
"globalpayments-lib": "^1.8.4"
"globalpayments-lib": "^1.8.5"
},
"devDependencies": {
"rimraf": "*",
Expand Down
2 changes: 1 addition & 1 deletion packages/globalpayments-lib/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 20cc8a7

Please sign in to comment.