From f51e0a6ab8903a49822fe0546439c89bc33ff6fe Mon Sep 17 00:00:00 2001 From: Andrey Shabarshov Date: Sun, 24 Apr 2022 15:42:32 +0100 Subject: [PATCH] Mock payment gateway algorithm changed. --- QRBeeApi/Services/PaymentGateway.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QRBeeApi/Services/PaymentGateway.cs b/QRBeeApi/Services/PaymentGateway.cs index e04e88e..5ccb316 100644 --- a/QRBeeApi/Services/PaymentGateway.cs +++ b/QRBeeApi/Services/PaymentGateway.cs @@ -14,13 +14,13 @@ internal class PaymentGateway : IPaymentGateway public Task Payment(TransactionInfo info, ClientCardData clientCardData) { - if (info.Request.ClientResponse.MerchantRequest.Amount < 10) + if (info.Request.ClientResponse.MerchantRequest.Amount > 100) { _logger.LogInformation($"Transaction with id: {info.Id} failed"); return Task.FromResult(new GatewayResponse { Success = false, - ErrorMessage = "Amount is too low", + ErrorMessage = "Amount is too high", GatewayTransactionId = Guid.NewGuid().ToString() }); }