diff --git a/BTCPayServer/Controllers/UILNURLController.cs b/BTCPayServer/Controllers/UILNURLController.cs index 1f15ef5f2..edb042b22 100644 --- a/BTCPayServer/Controllers/UILNURLController.cs +++ b/BTCPayServer/Controllers/UILNURLController.cs @@ -192,6 +192,7 @@ namespace BTCPayServer PayoutMethodId = pmi, PullPaymentId = pullPaymentId, StoreId = pp.StoreId, + NonInteractiveOnly = nonInteractiveOnly, ClaimedAmount = result.MinimumAmount.ToDecimal(unit), }); diff --git a/BTCPayServer/Data/Payouts/PayoutBlob.cs b/BTCPayServer/Data/Payouts/PayoutBlob.cs index 8072ca509..1ae46cbb1 100644 --- a/BTCPayServer/Data/Payouts/PayoutBlob.cs +++ b/BTCPayServer/Data/Payouts/PayoutBlob.cs @@ -27,7 +27,8 @@ namespace BTCPayServer.Data [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] public int? ErrorCount { get; set; } - + [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] + public bool NonInteractiveOnly { get; set; } public int IncrementErrorCount() { if (ErrorCount is { } c) diff --git a/BTCPayServer/HostedServices/PullPaymentHostedService.cs b/BTCPayServer/HostedServices/PullPaymentHostedService.cs index a0d8fdf6a..a1c3e12a1 100644 --- a/BTCPayServer/HostedServices/PullPaymentHostedService.cs +++ b/BTCPayServer/HostedServices/PullPaymentHostedService.cs @@ -709,11 +709,12 @@ namespace BTCPayServer.HostedServices DedupId = req.ClaimRequest.Destination.Id, StoreDataId = req.ClaimRequest.StoreId ?? pp?.StoreId, Currency = payoutHandler.Currency, - OriginalCurrency = pp?.Currency ?? payoutHandler.Currency + OriginalCurrency = pp?.Currency ?? payoutHandler.Currency, }; var payoutBlob = new PayoutBlob() { Destination = req.ClaimRequest.Destination.ToString(), + NonInteractiveOnly = req.ClaimRequest.NonInteractiveOnly, Metadata = req.ClaimRequest.Metadata ?? new JObject(), }; payout.OriginalAmount = claimed; @@ -1067,6 +1068,7 @@ namespace BTCPayServer.HostedServices public IClaimDestination Destination { get; set; } public string StoreId { get; set; } public bool? PreApprove { get; set; } + public bool NonInteractiveOnly { get; set; } public JObject Metadata { get; set; } } diff --git a/BTCPayServer/PayoutProcessors/Lightning/LightningAutomatedPayoutProcessor.cs b/BTCPayServer/PayoutProcessors/Lightning/LightningAutomatedPayoutProcessor.cs index 0f25c4602..a7541b266 100644 --- a/BTCPayServer/PayoutProcessors/Lightning/LightningAutomatedPayoutProcessor.cs +++ b/BTCPayServer/PayoutProcessors/Lightning/LightningAutomatedPayoutProcessor.cs @@ -117,6 +117,9 @@ public class LightningAutomatedPayoutProcessor : BaseAutomatedPayoutProcessor