mirror of
https://github.com/valitydev/disputes-api.git
synced 2024-11-06 00:55:23 +00:00
fix cron
This commit is contained in:
parent
8a4fd47cee
commit
9345e2efd5
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ dispute:
|
||||
initialDelayCreated: 5000
|
||||
initialDelayPending: 5000
|
||||
initialDelayCreateAdjustments: 5000
|
||||
cronForgottenDisputesNotifications: 0 0 * * *
|
||||
cronForgottenDisputesNotifications: 0 0 0 * * *
|
||||
isScheduleCreatedEnabled: true
|
||||
isSchedulePendingEnabled: true
|
||||
isScheduleCreateAdjustmentsEnabled: true
|
||||
|
Loading…
Reference in New Issue
Block a user