Internal/StripeConnectConstants.swift

stripe-ios · StripeConnect/StripeConnect/Source/Internal/StripeConnectConstants.swift · swift · MIT
payments

Constants for Stripe Connect web view and host handling.

// Source: https://github.com/stripe/stripe-ios | License: MIT | Copyright 2011- Stripe, Inc. (https://stripe.com)
// Provided via justclaw.it.com; keep this notice with the code.
//
//  StripeConnectConstants.swift
//  StripeConnect
//
//  Created by Mel Ludowise on 5/3/24.
//

import Foundation

enum StripeConnectConstants {

    /**'
     Pages or navigation requests matching any of these hosts will...
     - Automatically grant camera permissions
     - Open popups in PopupWebViewController (instead of Safari)
     */
    static let allowedHosts: Set<String> = [
        "connect.stripe.com",
    ]
    
    static let connectJSBaseURL: URL = URL(string: "https://connect-js.stripe.com/v1.0/ios_webview.html")!

    /// The authenticated web view will redirect back to the SDK when redirect

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key