UNPKG

@stripe/stripe-react-native

Version:
14 lines (13 loc) 897 B
import type { CollectFinancialConnectionsAccountsParams } from 'src/types/FinancialConnections'; import type { CollectBankAccountTokenParams } from 'src/types/PaymentMethod'; /** * React hook for accessing functions on the Financial Connections sheet. * * Retuns the `collectBankAccountToken` and `collectFinancialConnectionsAccounts` functions, and a `loading` boolean that you can use * to display loading state (like showing a spinner). */ export declare function useFinancialConnectionsSheet(): { collectBankAccountToken: (clientSecret: string, params?: CollectBankAccountTokenParams | undefined) => Promise<import("src/types/FinancialConnections").TokenResult>; collectFinancialConnectionsAccounts: (clientSecret: string, params?: CollectFinancialConnectionsAccountsParams | undefined) => Promise<import("src/types/FinancialConnections").SessionResult>; loading: boolean; };