From d8f49b9e5dc50d62723440d372f67536a4af633f Mon Sep 17 00:00:00 2001 From: Kostya Struga Date: Thu, 24 Mar 2022 13:09:56 +0300 Subject: [PATCH] Fix recurrent data --- pom.xml | 2 +- .../adapter/flow/lib/processor/SuccessFinishProcessor.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 16e4231..49a0555 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ adapter-flow-lib - 0.1.0 + 0.1.1 jar adapter-flow-lib diff --git a/src/main/java/dev/vality/adapter/flow/lib/processor/SuccessFinishProcessor.java b/src/main/java/dev/vality/adapter/flow/lib/processor/SuccessFinishProcessor.java index ae25a88..03d110b 100644 --- a/src/main/java/dev/vality/adapter/flow/lib/processor/SuccessFinishProcessor.java +++ b/src/main/java/dev/vality/adapter/flow/lib/processor/SuccessFinishProcessor.java @@ -38,8 +38,10 @@ public class SuccessFinishProcessor saveData = new HashMap<>(); } String recToken = initRecurrentToken(response, entryStateModel); - saveData.put(MetaData.META_REC_TOKEN, recToken); - exitStateModel.setRecToken(recToken); + if (StringUtils.hasText(recToken)) { + saveData.put(MetaData.META_REC_TOKEN, recToken); + exitStateModel.setRecToken(recToken); + } } exitStateModel.setTrxExtra(saveData); log.debug("Finish success process response: {} entryStateModel: {}", response, entryStateModel);