From 507a5aed51b788c790f37e40937884f2ade083f9 Mon Sep 17 00:00:00 2001 From: Balazs Perlaki-Horvath Date: Wed, 27 Nov 2024 00:17:20 +0100 Subject: [PATCH 1/2] Setup session for macOS --- App/App_macOS.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/App/App_macOS.swift b/App/App_macOS.swift index 8b589941..77f46e4e 100644 --- a/App/App_macOS.swift +++ b/App/App_macOS.swift @@ -194,11 +194,11 @@ struct RootView: View { } } .frame(minWidth: 160) -// .safeAreaInset(edge: .bottom) { -// SupportKiwixButton { -// openWindow(id: "donation") -// } -// } + .safeAreaInset(edge: .bottom) { + SupportKiwixButton { + openWindow(id: "donation") + } + } } detail: { switch navigation.currentItem { case .loading: From c832a1af3e72ed54480310892600ad2b27954291 Mon Sep 17 00:00:00 2001 From: Balazs Perlaki-Horvath Date: Fri, 6 Dec 2024 09:31:35 +0100 Subject: [PATCH 2/2] Use 3d secure only --- Model/Payment.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Model/Payment.swift b/Model/Payment.swift index 28d2c491..4eb7fa28 100644 --- a/Model/Payment.swift +++ b/Model/Payment.swift @@ -89,7 +89,7 @@ struct Payment { .visa, .vPay ] - static let capabilities: PKMerchantCapability = [.threeDSecure, .credit, .debit, .emv] + static let capabilities: PKMerchantCapability = .threeDSecure /// NOTE: consider that these currencies support double precision, eg: 5.25 USD. /// Revisit `SelectedAmount`, and `SelectedPaymentAmount` @@ -141,7 +141,6 @@ struct Payment { request.countryCode = "CH" request.currencyCode = selectedAmount.currency request.supportedNetworks = Self.supportedNetworks - request.merchantCapabilities = .threeDSecure request.requiredBillingContactFields = [.emailAddress] let recurring: PKRecurringPaymentRequest? = if selectedAmount.isMonthly { PKRecurringPaymentRequest(paymentDescription: "payment.description.label".localized,