taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 16f6f6292388b35b6828e4502e75bc698c786882
parent 3da3fd49e152a5365fa786035ea10a8eba5a33fb
Author: Marc Stibane <marc@taler.net>
Date:   Thu, 19 Nov 2026 16:49:11 +0100

#12156 KYC for cyclos / xTaler

Diffstat:
MTalerWallet1/Views/Transactions/KYCauth.swift | 13++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/TalerWallet1/Views/Transactions/KYCauth.swift b/TalerWallet1/Views/Transactions/KYCauth.swift @@ -10,7 +10,7 @@ import SymLog import taler_swift struct KycData { - let debitIBAN: String + let debitIBAN: String // TODO: cyclos / xTaler should be in explicit fields let depositStr: (String, String) let debitPayto: String } @@ -20,6 +20,7 @@ struct KYCauth: View { let common: TransactionCommon func title(_ depositStr: String) -> String { + // TODO: adapt string for cyclos / xTaler String(localized: "You need to prove having control over the bank account for the deposit of \(depositStr).") } @@ -27,12 +28,15 @@ struct KYCauth: View { let kycErr = String(localized: "KYC Error") if let info = common.kycAuthTransferInfo { let debitPayTo = PayTo(info.debitPaytoUri) - if let debitIban = debitPayTo.iban { + if let debitAccount = debitPayTo.iban + ?? debitPayTo.cyclos + ?? debitPayTo.xTaler { let accountDetails = info.transferOptionsExt if let validDetails = accountDetails.validDetails { if let scope: ScopeInfo = common.scopes.first { let depositStr = common.amountRaw.formatted(scope, isNegative: false) - let kycData = KycData(debitIBAN: debitIban, depositStr: depositStr, + let kycData = KycData(debitIBAN: debitAccount, + depositStr: depositStr, debitPayto: info.debitPaytoUri) WireTransferView(stack: stack.push(), title: title(depositStr.0), @@ -44,8 +48,7 @@ struct KYCauth: View { } else { ErrorView(stack.push(), title: kycErr, message: String(localized: "No scope")) } } else { ErrorView(stack.push(), title: kycErr, message: String(localized: "No valid details")) } } else { - // TODO: What if payto contains no IBAN, but URL? - ErrorView(stack.push(), title: kycErr, message: String(localized: "No IBAN")) + ErrorView(stack.push(), title: kycErr, message: String(localized: "No KYC payment info")) } } else { ErrorView(stack.push(), title: kycErr, message: String(localized: "No KYC infos")) } } // body