Validate NUBAN account numbers with the check-digit algorithm

Aperta
#78 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
50/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend, payments

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
0
Fork
4
Merge medio
54m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Yormee-103/PayLoop

Tutte le issue di Yormee-103/PayLoop

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.