createForBankAccountToken
fun createForBankAccountToken(activity: ComponentActivity, callback: FinancialConnectionsSheetResultForTokenCallback): FinancialConnectionsSheet
Constructor to be used when launching the connections sheet from an Activity.
Parameters
activity
the Activity that is presenting the connections sheet.
callback
called with the result of the connections session after the connections sheet is dismissed.
fun createForBankAccountToken(fragment: Fragment, callback: FinancialConnectionsSheetResultForTokenCallback): FinancialConnectionsSheet
Constructor to be used when launching the payment sheet from a Fragment.
Parameters
fragment
the Fragment that is presenting the payment sheet.
callback
called with the result of the payment after the payment sheet is dismissed.