mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-22 02:52:39 -04:00
Merge pull request #1045 from kiwix/stripe-macOS
Stripe Apple Pay for MacOS
This commit is contained in:
commit
8708589e84
@ -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:
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user