Fix trx id (#11)

This commit is contained in:
struga 2022-03-03 14:43:48 +03:00 committed by GitHub
parent d51cbaa873
commit 4b137530e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -13,7 +13,7 @@
</parent>
<artifactId>adapter-flow-lib</artifactId>
<version>0.0.7</version>
<version>0.0.8</version>
<packaging>jar</packaging>
<name>adapter-flow-lib</name>

View File

@ -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<String, String> saveData = response.getSaveData();
if (entryStateModel.getBaseRequestModel().getRecurrentPaymentData() != null