mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 22:11:48 +01:00
Fix: Paid payment requests are not marked as completed if there is an expiry date set
This commit is contained in:
parent
89bbcb6092
commit
96509717cb
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue