This commit is contained in:
Anatoly Karlov 2024-11-01 20:18:47 +07:00
parent 8a4fd47cee
commit 9345e2efd5
3 changed files with 5 additions and 3 deletions

View File

@ -47,7 +47,7 @@
<dependency>
<groupId>dev.vality</groupId>
<artifactId>disputes-proto</artifactId>
<version>1.27-04cd488</version>
<version>1.28-38cc0c1</version>
</dependency>
<dependency>
<groupId>dev.vality</groupId>

View File

@ -97,10 +97,12 @@ public class ProviderDisputesCallbackHandler implements ProviderDisputesCallback
transactionContext.setTerminalOptions(paymentParams.getOptions());
log.info("call remoteClient.isPaymentSuccess {}", transactionContext);
try {
if (remoteClient.isPaymentSuccess(transactionContext)) {
var paymentStatusResult = remoteClient.checkPaymentStatus(transactionContext);
if (paymentStatusResult.isSuccess()) {
var providerCallback = new ProviderCallback();
providerCallback.setInvoiceId(paymentParams.getInvoiceId());
providerCallback.setPaymentId(paymentParams.getPaymentId());
providerCallback.setChangedAmount(paymentStatusResult.getChangedAmount().orElse(null));
providerCallbackDao.save(providerCallback);
log.info("providerCallback {}", providerCallback);
}

View File

@ -112,7 +112,7 @@ dispute:
initialDelayCreated: 5000
initialDelayPending: 5000
initialDelayCreateAdjustments: 5000
cronForgottenDisputesNotifications: 0 0 * * *
cronForgottenDisputesNotifications: 0 0 0 * * *
isScheduleCreatedEnabled: true
isSchedulePendingEnabled: true
isScheduleCreateAdjustmentsEnabled: true