diff --git a/Stripe/STPPaymentHandler.swift b/Stripe/STPPaymentHandler.swift index 5b6bd37883..5b148392da 100644 --- a/Stripe/STPPaymentHandler.swift +++ b/Stripe/STPPaymentHandler.swift @@ -1183,9 +1183,11 @@ public class STPPaymentHandler: NSObject, SFSafariViewControllerDelegate, STPURL // Redirect to an app // We don't want universal links to open up Safari, but we do want to allow custom URL schemes var options: [UIApplication.OpenExternalURLOptionsKey: Any] = [:] + #if !targetEnvironment(macCatalyst) if let scheme = url?.scheme, scheme == "http" || scheme == "https" { options[UIApplication.OpenExternalURLOptionsKey.universalLinksOnly] = true } + #endif // We don't check canOpenURL before opening the URL because that requires users to pre-register the custom URL schemes if let url = url {