mirror of
https://github.com/valitydev/adapter-flow-lib.git
synced 2024-11-06 00:05:22 +00:00
Fix timeout (#39)
This commit is contained in:
parent
760b33195a
commit
e5f5192534
2
pom.xml
2
pom.xml
@ -12,7 +12,7 @@
|
||||
</parent>
|
||||
|
||||
<artifactId>adapter-flow-lib</artifactId>
|
||||
<version>0.1.9</version>
|
||||
<version>0.1.10</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>adapter-flow-lib</name>
|
||||
|
@ -50,13 +50,13 @@ public class IntentResultFactory {
|
||||
Map<String, String> params = ThreeDsDataInitializer.initThreeDsParameters(exitStateModel);
|
||||
String redirectUrl = entryStateModel.getBaseRequestModel().getSuccessRedirectUrl();
|
||||
params.put(RedirectFields.TERM_URL.getValue(), callbackUrlExtractor.extractCallbackUrl(redirectUrl));
|
||||
int timerRedirectTimeout = extractRedirectTimeout(
|
||||
int timerRedirectTimeoutMin = extractRedirectTimeout(
|
||||
entryStateModel.getBaseRequestModel().getAdapterConfigurations(),
|
||||
timerProperties.getRedirectTimeoutMin());
|
||||
return Intent.suspend(
|
||||
new SuspendIntent(
|
||||
tagManagementService.findTag(params),
|
||||
Timer.timeout(timerRedirectTimeout)
|
||||
Timer.timeout(TimeoutUtils.toSeconds(timerRedirectTimeoutMin))
|
||||
).setUserInteraction(createUserInteraction(threeDsData, params))
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user