Merge pull request #1045 from kiwix/stripe-macOS

Stripe Apple Pay for MacOS
This commit is contained in:
Kelson 2024-12-06 10:59:36 +01:00 committed by GitHub
commit 8708589e84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 7 deletions

View File

@ -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:

View File

@ -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,