From f9416ecca2506e95913777b0a65fcd7ad9780f87 Mon Sep 17 00:00:00 2001 From: Sergey Nesterov Date: Thu, 30 Apr 2020 13:09:51 +0300 Subject: [PATCH] Fixed error codes processing from payment management --- .../MAVN.Service.SmartVouchers.DomainServices.csproj | 2 +- .../VouchersService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MAVN.Service.SmartVouchers.DomainServices/MAVN.Service.SmartVouchers.DomainServices.csproj b/src/MAVN.Service.SmartVouchers.DomainServices/MAVN.Service.SmartVouchers.DomainServices.csproj index 4dff540..11796c9 100644 --- a/src/MAVN.Service.SmartVouchers.DomainServices/MAVN.Service.SmartVouchers.DomainServices.csproj +++ b/src/MAVN.Service.SmartVouchers.DomainServices/MAVN.Service.SmartVouchers.DomainServices.csproj @@ -6,7 +6,7 @@ - + diff --git a/src/MAVN.Service.SmartVouchers.DomainServices/VouchersService.cs b/src/MAVN.Service.SmartVouchers.DomainServices/VouchersService.cs index c63b8b9..1bd4349 100644 --- a/src/MAVN.Service.SmartVouchers.DomainServices/VouchersService.cs +++ b/src/MAVN.Service.SmartVouchers.DomainServices/VouchersService.cs @@ -137,7 +137,7 @@ public async Task ReserveVoucherAsync(Guid voucherCamp Currency = campaign.Currency, PartnerId = campaign.PartnerId, }); - if (paymentRequestResult.ErrorCode != PaymentGenerationErrorCode.Success) + if (paymentRequestResult.ErrorCode != PaymentGenerationErrorCode.None) { await CancelReservationAsync(voucher.ShortCode); return new VoucherReservationResult