diff --git a/TalerWallet1/Resources/Localizable.xcstrings b/TalerWallet1/Resources/Localizable.xcstrings index e283ca45..6c119e37 100755 --- a/TalerWallet1/Resources/Localizable.xcstrings +++ b/TalerWallet1/Resources/Localizable.xcstrings @@ -2842,6 +2842,9 @@ } } }, + "Age-restricted purchase: %lld+" : { + "comment" : "payment: the order has a minimum age (contract terms minimum_age)" + }, "Alias Type:" : { "comment" : "Picker title", "localizations" : { diff --git a/TalerWallet1/Views/Transactions/PaymentTransactionView.swift b/TalerWallet1/Views/Transactions/PaymentTransactionView.swift index 1f23d124..5286b56b 100755 --- a/TalerWallet1/Views/Transactions/PaymentTransactionView.swift +++ b/TalerWallet1/Views/Transactions/PaymentTransactionView.swift @@ -73,6 +73,11 @@ struct MerchantHeader: View { Text(address) .talerFont(.body) } + if let minimumAge = terms.minimumAge, minimumAge > 0 { + Text("Age-restricted purchase: \(minimumAge)+") + .talerFont(.body) + .foregroundColor(WalletColors().errorColor) + } } } .foregroundStyle(Color.primary) .padding(.bottom)