brazilian_banks 0.2.1-dev copy "brazilian_banks: ^0.2.1-dev" to clipboard
brazilian_banks: ^0.2.1-dev copied to clipboard

outdated

Package to obtain brazilian bank codes/names, and account/digit validation

Brazilian Banks #

Brazilian Banks list and account/digit validation.

Thanks to #

Getting Started #

import 'package:brazilian_banks/brazilian_banks.dart';

Fetch Brazilian Banks #

final banks = await BrasilApiBanks.getBanks();

Validate Brazilian Bank Account Digit #

Banks currently supported:

  • Banco do Brasil (001)
  • Bradesco (237)
  • Itau (341)

Example:

var response = BankAccountValidation.validateAccountNumber(
    branchNumber: '2545'
    accountNumberWithDigit: '02366-1',
    bankCode: 341,
);

if (response.errorMessage == null) {
    if (response.isValid) {
        print('account digit is correct');
    } else {
        print('the correct account digit probably is ${response.digit}');
    }
} else {
    print(response.errorMessage);
}

Contribute #

As you've seen, there are many more banks to be implemented.
Feel free to fork the project and throw us Pull Requests (just don't forget the unit test ;-))

8
likes
0
pub points
50%
popularity

Publisher

verified publishercredifit.com.br

Package to obtain brazilian bank codes/names, and account/digit validation

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, http

More

Packages that depend on brazilian_banks