collectFinancialConnectionsAccounts method

Future<FinancialConnectionSessionResult> collectFinancialConnectionsAccounts({
  1. required String clientSecret,
  2. CollectFinancialConnectionsAccountsParams params = const CollectFinancialConnectionsAccountsParams(),
})

Call the financial connections authentication flow in order to collect the user account data.

Needs clientSecret of the stripe financial connections sessions. For more info see: Collect an account to build data-powered products

Throws StripeError in case creating the token fails.

Implementation

Future<FinancialConnectionSessionResult> collectFinancialConnectionsAccounts({
  required String clientSecret,
  CollectFinancialConnectionsAccountsParams params =
      const CollectFinancialConnectionsAccountsParams(),
}) async {
  try {
    return _platform.collectFinancialConnectionsAccounts(
      clientSecret: clientSecret,
      params: params,
    );
  } on StripeError {
    rethrow;
  }
}