mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Fix: Paid payment requests are not marked as completed if there is an expiry date set
This commit is contained in:
@@ -50,7 +50,8 @@ namespace BTCPayServer.PaymentRequest
|
||||
if (blob.ExpiryDate.Value <= DateTimeOffset.UtcNow)
|
||||
currentStatus = Client.Models.PaymentRequestData.PaymentRequestStatus.Expired;
|
||||
}
|
||||
else if (pr.Status == Client.Models.PaymentRequestData.PaymentRequestStatus.Pending)
|
||||
|
||||
if (currentStatus == Client.Models.PaymentRequestData.PaymentRequestStatus.Pending)
|
||||
{
|
||||
var rateRules = pr.StoreData.GetStoreBlob().GetRateRules(_BtcPayNetworkProvider);
|
||||
var invoices = await _PaymentRequestRepository.GetInvoicesForPaymentRequest(pr.Id);
|
||||
|
||||
Reference in New Issue
Block a user