搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。