FinancialConnectionsSheet
@available(iOSApplicationExtension, unavailable)
final public class FinancialConnectionsSheet
A drop-in class that presents a sheet for a user to connect their financial accounts. This class is in beta; see https://stripe.com/docs/financial-connections for access
-
The result of financial account connection flow
See moreDeclaration
Swift
@frozen public enum Result
-
The client secret of the Stripe FinancialConnectionsSession object. See https://stripe.com/docs/api/financial_connections/sessions/object#financial_connections_session_object-client_secret
Declaration
Swift
public let financialConnectionsSessionClientSecret: String
-
A URL that redirects back to your app that FinancialConnectionsSheet can use get back to your app after completing authentication in another app (such as bank app or Safari).
Declaration
Swift
public let returnURL: String?
-
The APIClient instance used to make requests to Stripe
Declaration
Swift
public var apiClient: STPAPIClient { get set }
-
Initializes a
FinancialConnectionsSheet
.Declaration
Swift
public convenience init(financialConnectionsSessionClientSecret: String, returnURL: String? = nil)
Parameters
financialConnectionsSessionClientSecret
The client secret of a Stripe FinancialConnectionsSession object.
returnURL
A URL that redirects back to your application. FinancialConnectionsSheet uses it after completing authentication in another application (such as a bank application or Safari).
-
Presents a sheet for a customer to connect their financial account.
Declaration
Swift
@available(iOSApplicationExtension, unavailable) public func present(from presentingViewController: UIViewController, completion: @escaping (Result) -> ())
Parameters
presentingViewController
The view controller to present the financial connections sheet.
completion
Called with the result of the financial connections session after the financial connections sheet is dismissed.