1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

send notification IPNs on bitpay invoice

This commit is contained in:
Kyle Spearrin
2019-02-22 08:08:48 -05:00
parent 31097870a1
commit 4e99ae0dd6
5 changed files with 16 additions and 6 deletions

View File

@ -15,7 +15,7 @@ namespace Bit.Core.Models.Api
public string Name { get; set; }
public string Email { get; set; }
public NBitpayClient.Invoice ToBitpayClientInvoice()
public NBitpayClient.Invoice ToBitpayClientInvoice(GlobalSettings globalSettings)
{
var inv = new NBitpayClient.Invoice
{
@ -27,7 +27,10 @@ namespace Bit.Core.Models.Api
{
email = Email,
Name = Name
}
},
NotificationURL = globalSettings.BitPay.NotificationUrl,
FullNotifications = true,
ExtendedNotifications = true
};
var posData = string.Empty;