do not send IPN if not set

This commit is contained in:
nicolas.dorier
2018-01-15 00:22:40 +09:00
parent f340c6eb7f
commit ecb82f2cc9
3 changed files with 4 additions and 2 deletions

View File

@@ -68,6 +68,8 @@ namespace BTCPayServer.HostedServices
CancellationTokenSource cts = new CancellationTokenSource(10000);
try
{
if (string.IsNullOrEmpty(invoice.NotificationURL))
return;
_EventAggregator.Publish<InvoiceIPNEvent>(new InvoiceIPNEvent(invoice.Id));
await SendNotification(invoice, cts.Token);
return;