collectBankAccount method

Future<PaymentIntent> collectBankAccount({
  1. required bool isPaymentIntent,
  2. required String clientSecret,
  3. required CollectBankAccountParams params,
})

Collect the bankaccount details for the payment intent.

Only US bank accounts are supported. This method is only implemented for iOS at the moment.

Implementation

Future<PaymentIntent> collectBankAccount({
  /// Whether the clientsecret is associated with setup or paymentintent
  required bool isPaymentIntent,

  /// The clientSecret of the payment and setup intent
  required String clientSecret,

  /// Parameters associated with the account holder.
  ///
  /// The name and email is required.
  required CollectBankAccountParams params,
}) async {
  return await _platform.collectBankAccount(
    isPaymentIntent: isPaymentIntent,
    clientSecret: clientSecret,
    params: params,
  );
}