diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj
index 083286534..91f0d9936 100644
--- a/BTCPayServer/BTCPayServer.csproj
+++ b/BTCPayServer/BTCPayServer.csproj
@@ -2,7 +2,7 @@
Exe
netcoreapp2.0
- 1.0.2.0
+ 1.0.2.1
NU1701,CA1816,CA1308,CA1810,CA2208
diff --git a/BTCPayServer/Services/Invoices/InvoiceEntity.cs b/BTCPayServer/Services/Invoices/InvoiceEntity.cs
index 5fd74741b..8185a394c 100644
--- a/BTCPayServer/Services/Invoices/InvoiceEntity.cs
+++ b/BTCPayServer/Services/Invoices/InvoiceEntity.cs
@@ -336,7 +336,6 @@ namespace BTCPayServer.Services.Invoices
Currency = ProductInformation.Currency,
Flags = new Flags() { Refundable = Refundable }
};
-
dto.CryptoInfo = new List();
foreach (var info in this.GetPaymentMethods(networkProvider))
{
@@ -404,7 +403,7 @@ namespace BTCPayServer.Services.Invoices
dto.Token = Encoders.Base58.EncodeData(RandomUtils.GetBytes(16)); //No idea what it is useful for
dto.Guid = Guid.NewGuid().ToString();
-
+ dto.Url = dto.CryptoInfo[0].Url;
dto.ExceptionStatus = ExceptionStatus == null ? new JValue(false) : new JValue(ExceptionStatus);
return dto;
}
@@ -745,7 +744,7 @@ namespace BTCPayServer.Services.Invoices
paymentData.Outpoint = Outpoint;
return paymentData;
}
- if(GetPaymentMethodId().PaymentType== PaymentTypes.LightningLike)
+ if (GetPaymentMethodId().PaymentType == PaymentTypes.LightningLike)
{
return JsonConvert.DeserializeObject(CryptoPaymentData);
}