diff --git a/TalerWallet1/Views/Transactions/KYCauth.swift b/TalerWallet1/Views/Transactions/KYCauth.swift index c7624100..4dd0704c 100755 --- a/TalerWallet1/Views/Transactions/KYCauth.swift +++ b/TalerWallet1/Views/Transactions/KYCauth.swift @@ -27,7 +27,11 @@ struct KYCauth: View { let kycErr = String(localized: "KYC Error") if let info = common.kycAuthTransferInfo { let debitPayTo = PayTo(info.debitPaytoUri) - if let debitIban = debitPayTo.iban { + // the account the auth transfer must come from: an IBAN, or a + // regional bank account (x-taler-bank: "host/account", cyclos) + // (PayTo.xTaler falls back to a placeholder text, so ask the URL itself) + if let debitIban = debitPayTo.iban ?? debitPayTo.cyclos + ?? URL(string: info.debitPaytoUri)?.xTaler { let accountDetails = info.transferOptionsExt if let validDetails = accountDetails.validDetails { if let scope: ScopeInfo = common.scopes.first {