diff --git a/pom.xml b/pom.xml index db7a4b0..294f20b 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ adapter-flow-lib - 0.0.7 + 0.0.8 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 dff3506..8875d4a 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 @@ -26,7 +26,9 @@ public class SuccessFinishProcessor && !ErrorUtils.isError(response)) { log.debug("Start success process response: {} entryStateModel: {}", response, entryStateModel); ExitStateModel exitStateModel = new ExitStateModel(); - exitStateModel.setProviderTrxId(response.getProviderTrxId()); + exitStateModel.setProviderTrxId(StringUtils.hasText(response.getProviderTrxId()) + ? response.getProviderTrxId() + : entryStateModel.getBaseRequestModel().getProviderTrxId()); exitStateModel.setLastOperationStatus(response.getStatus()); Map saveData = response.getSaveData(); if (entryStateModel.getBaseRequestModel().getRecurrentPaymentData() != null