From c4ca57c28b2a04c6e5e33280a47de7c5ec9c051b Mon Sep 17 00:00:00 2001 From: Kukks Date: Fri, 8 Mar 2024 09:40:42 +0100 Subject: [PATCH] add pp link and instruction for ios --- .../UIBoltcardBalanceController.cs | 3 +- .../ViewModels/BalanceViewModel.cs | 1 + .../BoltcardBalance/Views/BalanceView.cshtml | 31 ++++---- .../Views/BalanceView_WithTopup.cshtml | 73 +++++++++++++++++++ .../BoltcardBalance/Views/ScanCard.cshtml | 20 ++++- 5 files changed, 110 insertions(+), 18 deletions(-) create mode 100644 BTCPayServer/Plugins/BoltcardBalance/Views/BalanceView_WithTopup.cshtml diff --git a/BTCPayServer/Plugins/BoltcardBalance/Controllers/UIBoltcardBalanceController.cs b/BTCPayServer/Plugins/BoltcardBalance/Controllers/UIBoltcardBalanceController.cs index 49b7954b0..ea2baab83 100644 --- a/BTCPayServer/Plugins/BoltcardBalance/Controllers/UIBoltcardBalanceController.cs +++ b/BTCPayServer/Plugins/BoltcardBalance/Controllers/UIBoltcardBalanceController.cs @@ -90,7 +90,8 @@ namespace BTCPayServer.Plugins.BoltcardBalance.Controllers AmountDue = blob.Limit - totalPaid, LNUrlBech32 = bech32LNUrl.AbsoluteUri, LNUrlPay = Url.Action(nameof(UIBoltcardController.GetPayRequest), "UIBoltcard", new { p }, "lnurlp"), - BoltcardKeysResetLink = $"boltcard://reset?url={GetBoltcardDeeplinkUrl(pp.Id, OnExistingBehavior.KeepVersion)}" + BoltcardKeysResetLink = $"boltcard://reset?url={GetBoltcardDeeplinkUrl(pp.Id, OnExistingBehavior.KeepVersion)}", + PullPaymentLink = Url.Action(nameof(UIPullPaymentController.ViewPullPayment), "UIPullPayment", new { pullPaymentId = pp.Id }, Request.Scheme, Request.Host.ToString()) }; foreach (var payout in payouts) { diff --git a/BTCPayServer/Plugins/BoltcardBalance/ViewModels/BalanceViewModel.cs b/BTCPayServer/Plugins/BoltcardBalance/ViewModels/BalanceViewModel.cs index f8a6adf1e..d3f087fd6 100644 --- a/BTCPayServer/Plugins/BoltcardBalance/ViewModels/BalanceViewModel.cs +++ b/BTCPayServer/Plugins/BoltcardBalance/ViewModels/BalanceViewModel.cs @@ -18,6 +18,7 @@ namespace BTCPayServer.Plugins.BoltcardBalance.ViewModels public List Transactions { get; set; } = new List(); public string LNUrlBech32 { get; set; } public string BoltcardKeysResetLink { get; set; } + public string PullPaymentLink { get; set; } public string LNUrlPay { get; set; } } diff --git a/BTCPayServer/Plugins/BoltcardBalance/Views/BalanceView.cshtml b/BTCPayServer/Plugins/BoltcardBalance/Views/BalanceView.cshtml index ab06831ef..1757945b4 100644 --- a/BTCPayServer/Plugins/BoltcardBalance/Views/BalanceView.cshtml +++ b/BTCPayServer/Plugins/BoltcardBalance/Views/BalanceView.cshtml @@ -13,12 +13,16 @@