commit 88e39b3bf2f70fb052e40f8923aefa7aa923bf43
parent 0559b6dc35eb07d1675f11bd8b90afde7fe1f412
Author: Marc Stibane <marc@taler.net>
Date: Fri, 12 Dec 2025 08:08:29 +0100
remove scanned tx after payment
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/TalerWallet1/Views/Sheets/Payment/PaymentDone.swift b/TalerWallet1/Views/Sheets/Payment/PaymentDone.swift
@@ -11,6 +11,7 @@ import SymLog
struct PaymentDone: View {
private let symLog = SymLogV(0)
let stack: CallStack
+ let url: URL
// let scope: ScopeInfo?
let transactionId: String
@@ -25,6 +26,7 @@ struct PaymentDone: View {
if let confirmPayResult = try? await model.confirmPay(transactionId) {
// symLog.log(confirmPayResult as Any)
if confirmPayResult.type == "done" {
+ controller.removeURL(url)
paymentDone = true
}
}
diff --git a/TalerWallet1/Views/Sheets/Payment/PaymentView.swift b/TalerWallet1/Views/Sheets/Payment/PaymentView.swift
@@ -276,6 +276,7 @@ struct PaymentView: View, Sendable {
let _ = symLog.log("\(timeToPay) not shown")
}
let destination = PaymentDone(stack: stack.push(),
+ url: url,
// scope: firstScope, // TODO: let user choose which currency
transactionId: preparePayResult.transactionId)
NavigationLink(destination: destination) {