mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-23 07:04:26 +01:00
set buyer email in get invoice to refund email if not set (#1023)
closes #973 fixes #941
This commit is contained in:
committed by
Nicolas Dorier
parent
edfdae744f
commit
5b73f22eb4
@@ -475,6 +475,11 @@ retry:
|
||||
{
|
||||
entity.Events = invoice.Events.OrderBy(c => c.Timestamp).ToList();
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(entity.RefundMail) && string.IsNullOrEmpty(entity.BuyerInformation.BuyerEmail))
|
||||
{
|
||||
entity.BuyerInformation.BuyerEmail = entity.RefundMail;
|
||||
}
|
||||
return entity;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user