Fix parameters (#38)

This commit is contained in:
struga 2022-05-26 17:06:52 +03:00 committed by GitHub
parent ba28dbab68
commit 760b33195a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -12,7 +12,7 @@
</parent> </parent>
<artifactId>adapter-flow-lib</artifactId> <artifactId>adapter-flow-lib</artifactId>
<version>0.1.8</version> <version>0.1.9</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>adapter-flow-lib</name> <name>adapter-flow-lib</name>

View File

@ -57,7 +57,7 @@ public class IntentResultFactory {
new SuspendIntent( new SuspendIntent(
tagManagementService.findTag(params), tagManagementService.findTag(params),
Timer.timeout(timerRedirectTimeout) Timer.timeout(timerRedirectTimeout)
).setUserInteraction(createUserInteraction(threeDsData)) ).setUserInteraction(createUserInteraction(threeDsData, params))
); );
} }
@ -83,15 +83,15 @@ public class IntentResultFactory {
Timer.timeout(TimeoutUtils.toSeconds(timerRedirectTimeoutMin))) Timer.timeout(TimeoutUtils.toSeconds(timerRedirectTimeoutMin)))
.setTimeoutBehaviour(TimeoutBehaviour.callback( .setTimeoutBehaviour(TimeoutBehaviour.callback(
ByteBuffer.wrap(parametersSerializer.writeByte(params))) ByteBuffer.wrap(parametersSerializer.writeByte(params)))
).setUserInteraction(createUserInteraction(threeDsData)) ).setUserInteraction(createUserInteraction(threeDsData, params))
); );
} }
private UserInteraction createUserInteraction(ThreeDsData threeDsData) { private UserInteraction createUserInteraction(ThreeDsData threeDsData, Map<String, String> parameters) {
if (threeDsData.getHttpMethod() == HttpMethod.GET) { if (threeDsData.getHttpMethod() == HttpMethod.GET) {
return createGetUserInteraction(threeDsData.getAcsUrl()); return createGetUserInteraction(threeDsData.getAcsUrl());
} else { } else {
return createPostUserInteraction(threeDsData.getAcsUrl(), threeDsData.getParameters()); return createPostUserInteraction(threeDsData.getAcsUrl(), parameters);
} }
} }