Validate NUBAN account numbers with the check-digit algorithm

Abierto
#78 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
50/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
4
Merge medio
54 min
PR fusionados (30 d)
6

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Yormee-103/PayLoop

Todos los issues de Yormee-103/PayLoop

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.