搜索插件、代码仓与 APP 分类

插件详情v1.2.0

iban

一个包含在官方注册表中的IBAN验证库。还支持一些非官方的IBAN。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
2.6万
喜欢数
31
Pub 分数
160

安装插件

flutter pub add iban

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

iban 包是一个用于验证国际银行账户号码(IBAN)的 Flutter/Dart 库,可与官方 IBAN 注册表进行比对,支持标准格式以及部分非官方格式。该库提供可靠的验证功能,确保跨国界银行账户号码格式正确。该包轻量且可无缝集成到需要输入金融数据的表单中,支持用户输入时的实时反馈。它支持所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux。

适合场景

  • 银行应用程序中的表单验证
  • 国际支付处理
  • 银行账户的用户输入验证
  • 财务数据收集
  • 跨境交易处理
  • 自动IBAN检查

主要特点

  • 与官方IBAN注册表进行验证
  • 支持非官方的 IBAN 格式
  • 跨平台兼容性
  • 轻量且易于集成
  • 实时验证反馈
  • 强大的错误检测

适合对象

  • 金融应用
  • 支付网关
  • 银行平台
  • 全球电子商务系统
  • 需要国际账户验证的应用程序

使用建议

  • 可能不涵盖所有罕见或地区特定的IBAN格式
  • 需要更新的注册表数据以获得完全准确的结果
  • 仅限IBAN验证,不支持完整的银行API集成
  • 不适用于非IBAN账户类型
  • 依赖外部注册表更新以获取新的国家代码

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

iban

Validate IBANs

Build Status

Usage

A simple usage example:

import 'package:iban/iban.dart';

void main() {
  final iban = 'at61 1904 3002 3457 3201';

  if (isValid(iban)) {
    print('$iban is a valid iban');
  } else {
    print('$iban is not a valid iban');
  }

  if (isValid(iban, sanitize: false)) {
    print('$iban without sanitization is a valid iban.');
  } else {
    print('$iban without sanitization is not a valid iban.');
  }

  print('Convert the IBAN into a standard format: ${electronicFormat(iban)}');
  print('To display an IBAN to a user we have: ${toPrintFormat(iban)}');
}

Iban specifications

The iban specifications are copied from iban.js, which is unfortunately no longer maintained.

See specifications.dart for all available countries.

Contrary to iban.js, which parses the specifications at runtime, all regular expression strings are parsed using specifications_builder.dart.

Please open an issue if you know how to build the iban for another country.

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。