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);