From e5f51925348a33d1ac4532c259db6f08fcc2f320 Mon Sep 17 00:00:00 2001 From: struga Date: Thu, 2 Jun 2022 16:09:48 +0300 Subject: [PATCH] Fix timeout (#39) --- pom.xml | 2 +- .../vality/adapter/flow/lib/service/IntentResultFactory.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 754ba2c..0981529 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ adapter-flow-lib - 0.1.9 + 0.1.10 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 00b9e90..0aaae3c 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 @@ -50,13 +50,13 @@ public class IntentResultFactory { Map 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)) ); }