From 760b33195aaf7a6dbc14e0b0e29bb04d77c6f06e Mon Sep 17 00:00:00 2001 From: struga Date: Thu, 26 May 2022 17:06:52 +0300 Subject: [PATCH] Fix parameters (#38) --- pom.xml | 2 +- .../adapter/flow/lib/service/IntentResultFactory.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index e40b803..754ba2c 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ adapter-flow-lib - 0.1.8 + 0.1.9 jar adapter-flow-lib diff --git a/src/main/java/dev/vality/adapter/flow/lib/service/IntentResultFactory.java b/src/main/java/dev/vality/adapter/flow/lib/service/IntentResultFactory.java index 3670d3f..00b9e90 100644 --- a/src/main/java/dev/vality/adapter/flow/lib/service/IntentResultFactory.java +++ b/src/main/java/dev/vality/adapter/flow/lib/service/IntentResultFactory.java @@ -57,7 +57,7 @@ public class IntentResultFactory { new SuspendIntent( tagManagementService.findTag(params), Timer.timeout(timerRedirectTimeout) - ).setUserInteraction(createUserInteraction(threeDsData)) + ).setUserInteraction(createUserInteraction(threeDsData, params)) ); } @@ -83,15 +83,15 @@ public class IntentResultFactory { Timer.timeout(TimeoutUtils.toSeconds(timerRedirectTimeoutMin))) .setTimeoutBehaviour(TimeoutBehaviour.callback( ByteBuffer.wrap(parametersSerializer.writeByte(params))) - ).setUserInteraction(createUserInteraction(threeDsData)) + ).setUserInteraction(createUserInteraction(threeDsData, params)) ); } - private UserInteraction createUserInteraction(ThreeDsData threeDsData) { + private UserInteraction createUserInteraction(ThreeDsData threeDsData, Map parameters) { if (threeDsData.getHttpMethod() == HttpMethod.GET) { return createGetUserInteraction(threeDsData.getAcsUrl()); } else { - return createPostUserInteraction(threeDsData.getAcsUrl(), threeDsData.getParameters()); + return createPostUserInteraction(threeDsData.getAcsUrl(), parameters); } }