commit b0038ebb43471e46d022a1ff144c5fe3c396b708
parent b327265aaa05881977f8fa9291789d79c7190da4
Author: Marc Stibane <marc@taler.net>
Date: Thu, 31 Jul 2025 17:57:59 +0200
posConfirmation via NFC
Diffstat:
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/TalerWallet1/Model/Transaction.swift b/TalerWallet1/Model/Transaction.swift
@@ -493,6 +493,8 @@ struct PaymentTransactionDetails: Decodable {
var refunds: [RefundInfo]? // array of refund txIDs for this payment
var refundQueryActive: Bool?
var posConfirmation: String?
+ var posConfirmationDeadline: Timestamp?
+ var posConfirmationViaNfc: Bool?
}
struct PaymentTransaction : Sendable {
var common: TransactionCommon
diff --git a/TalerWallet1/Views/Transactions/TransactionPayDetailV.swift b/TalerWallet1/Views/Transactions/TransactionPayDetailV.swift
@@ -21,8 +21,16 @@ struct TransactionPayDetailV: View {
Text("Confirmation:", comment: "purchase may have a pos validation / confirmation")
.talerFont(.title3)
.listRowSeparator(.hidden)
- Text(posConfirmation)
- .talerFont(.body)
+ let totp = Text(posConfirmation)
+ .talerFont(.title1)
+ if #available(iOS 17.7, *) {
+ let talerURI = posConfirmation
+ BorderWithNFC(talerURI: talerURI, nfcHint: true, size: 250, scanHints: nil) {
+ totp
+ }
+ } else {
+ totp
+ }
}
// Text(info.summary)
Text("Order-ID:")