Compare commits

...

1 Commits

Author SHA1 Message Date
7575d9ebf6 Change obsolete fields in IPN fixes #5361 2023-10-18 10:14:46 +02:00

View File

@ -111,13 +111,11 @@ namespace BTCPayServer.HostedServices
var btcCryptoInfo = dto.CryptoInfo.FirstOrDefault(c => c.GetpaymentMethodId() == new PaymentMethodId("BTC", Payments.PaymentTypes.BTCLike) && !string.IsNullOrEmpty(c.Address));
if (btcCryptoInfo != null)
{
#pragma warning disable CS0618
notification.Data.Rate = dto.Rate;
notification.Data.Rate = btcCryptoInfo.Rate;
notification.Data.Url = dto.Url;
notification.Data.BTCDue = dto.BTCDue;
notification.Data.BTCPaid = dto.BTCPaid;
notification.Data.BTCPrice = dto.BTCPrice;
#pragma warning restore CS0618
notification.Data.BTCDue = btcCryptoInfo.Due;
notification.Data.BTCPaid = btcCryptoInfo.Paid;
notification.Data.BTCPrice = btcCryptoInfo.Price;
}
if (sendMail &&