mirror of
https://github.com/valitydev/adapter-flow-lib.git
synced 2024-11-06 00:05:22 +00:00
Fix parameters (#38)
This commit is contained in:
parent
ba28dbab68
commit
760b33195a
2
pom.xml
2
pom.xml
@ -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>
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user