tokenize method

  1. @override
Future<PEBankAccount> tokenize([
  1. String? merchantId,
  2. Map<String, String>? additionalData
])

Tokenizes the bank account details entered in the form.

This method securely submits the bank account information to PayEngine and returns a Future<[PEBankAccount]> containing the tokenized data.

  • merchantId: (optional) The merchant ID for whom the bank account is being created.
  • additionalData: (optional) Additional metadata to be included with the request.

Returns: A Future<PEBankAccount> that resolves to a tokenized bank account object.

Implementation

@override
Future<PEBankAccount> tokenize([String? merchantId, Map<String, String>? additionalData]) async {
  return await _formState.tokenize(merchantId, additionalData);
}