Validate NUBAN account numbers with the check-digit algorithm

Đang mở
#78 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
50/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
frontend, payments

Hướng nghiên cứu

Start with web/app/withdraw/page.tsx, where the account number is currently checked only for ten digits, and add the new validator in web/lib/nuban.ts, which does not exist yet. The check-digit rule depends on bank codes from #77, so confirm that work has landed or check with the maintainer before relying on it. Done when known valid and invalid NUBAN test vectors pass and an invalid number blocks submission with an inline message on the Withdraw form.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

difficulty: intermediate enhancement help wanted Stellar Wave web

Difficulty: Intermediate

Problem

Only "10 digits" is checked for the account number.

Why it matters

It catches typos before a (mock or real) payout.

Scope of work

Implement the NUBAN check-digit validation per bank code in lib/nuban.ts and show an inline error on the Withdraw form.

Acceptance criteria

  • Known valid and invalid test vectors pass.
  • An invalid number blocks submission with a clear message.

Relevant files

  • web/lib/nuban.ts (new), web/app/withdraw/page.tsx

Dependencies

Needs the bank codes from #77; related to #26.

Maintainer discussion needed?

No.

Ngôn ngữ chính
TypeScript
Star
0
Fork
4
Merge trung bình
54 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Yormee-103/PayLoop

Tất cả issue của Yormee-103/PayLoop

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.