Skip to content

Commit

Permalink
Fixed error codes processing from payment management
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Nesterov committed Apr 30, 2020
1 parent cfd9c6f commit f9416ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ItemGroup>
<PackageReference Include="AutoMapper" Version="9.0.0" />
<PackageReference Include="Lykke.RabbitMqBroker" Version="7.13.1" />
<PackageReference Include="MAVN.Service.PaymentManagement.Client" Version="1.10.1" />
<PackageReference Include="MAVN.Service.PaymentManagement.Client" Version="1.11.0" />
<PackageReference Include="StackExchange.Redis" Version="2.1.30" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public async Task<VoucherReservationResult> 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
Expand Down

0 comments on commit f9416ec

Please sign in to comment.