-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DRAFT] [Connect] Using FinancialConnections SDK in Connect #4159
base: master
Are you sure you want to change the base?
[DRAFT] [Connect] Using FinancialConnections SDK in Connect #4159
Conversation
Example/StripeConnectExample/StripeConnectExample/MainViewController.swift
Outdated
Show resolved
Hide resolved
StripeConnect/StripeConnect/Source/EmbeddedComponentManager.swift
Outdated
Show resolved
Hide resolved
StripeFinancialConnections/StripeFinancialConnections/Source/Common/HostController.swift
Outdated
Show resolved
Hide resolved
Example/StripeConnectExample/StripeConnect Example.xcodeproj/project.pbxproj
Outdated
Show resolved
Hide resolved
a37d5e1
to
141c9d3
Compare
/// The linked bank account token. | ||
/// This value will be nil if the user canceled the flow or an error occurred. | ||
let bankToken: String? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively, if we don't need to return the bank token, we could send a success | cancelled | failed
enum value to the web view
StripePaymentSheet- public var paymentMethodLayout: StripePaymentSheet.PaymentSheet.PaymentMethodLayout
- public enum PaymentMethodLayout {
- case horizontal
- case vertical
- case automatic
- public static func == (a: StripePaymentSheet.PaymentSheet.PaymentMethodLayout, b: StripePaymentSheet.PaymentSheet.PaymentMethodLayout) -> Swift.Bool
- public func hash(into hasher: inout Swift.Hasher)
- public var hashValue: Swift.Int {
- get
- }
- } If you are adding a new public API consider the following:
If you are modifying or removing a public API:
If you confirm these APIs need to be added/updated and have undergone necessary review, add the label ℹ️ If this comment appears to be left in error, make sure your branch is up-to-date with |
d4937c6
to
5ce1981
Compare
Summary
Enables using the mobile native FinancialConnections SDK from Connect web components to retrieve the user's bank token.
StripeConnect
->StripeFinancialConnections
openFinancialConnections
message handler: Triggers the FinancialConnectionsSheet to open:clientSecret
: The Financial Connections Session client secret for the connected accountid
: A unique UUID that gets passed back to the web layer onreturnFromFinancialConnections
returnedFromFinancialConnections
message sender: Returns the connected bank token to the web layerbankToken
: The bank account token of the connected account. This value will be null if the user canceled out of the flow or an error occurredid
: Theid
originally passed to the mobile layer fromopenFinancialConnections
Motivation
https://jira.corp.stripe.com/browse/MXMOBILE-2526
https://docs.google.com/document/d/1WUTvnK8kqsB00zcmUzwVC_CW5MMmXC_CDk8eQTAzaaQ
Testing
Demo video (turn on audio):
https://drive.google.com/file/d/1I7W559oCf10uVNPYvQADRukNzw3MK_zY
TODO