From 647447fabdae850241ff5cc8f0b04dc89bdbbd5c Mon Sep 17 00:00:00 2001 From: enisn Date: Thu, 21 Oct 2021 09:15:33 +0300 Subject: [PATCH] Remove Timeout logic from Web --- .../src/Payment.Web/Pages/Payment/PreCheckout.cshtml.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml.cs b/modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml.cs index 39c03d8..8841e38 100644 --- a/modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml.cs +++ b/modules/payment/src/Payment.Web/Pages/Payment/PreCheckout.cshtml.cs @@ -36,11 +36,6 @@ namespace Payment.Web.Pages.Payment { PaymentRequest = await _paymentRequestAppService.GetAsync(PaymentRequestId); - if (PaymentRequest.CreationTime.AddMinutes(15) >= Clock.Now) - { - throw new UserFriendlyException("Payment requiest is timed out."); - } - var result = await _paymentRequestAppService.StartPaymentAsync(new StartPaymentDto { PaymentRequestId = PaymentRequest.Id,