Allow a third-party payer (employer or agency wallet) to fund an invoice

Abierto
#156 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
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
12/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust, typescript

Línea de trabajo

Start in contracts/invoice/src/lib.rs, where the paid entrypoint checks that the client address authorises the transfer, and read contracts/invoice/src/test.rs to see how MockAuth is used. The issue requires a product and security decision before any code, so the first step is a maintainer answer on the payer rule. Done means a declared third-party payer can fund an invoice, the default client-only rule still holds, the paid event records the actual payer, and the README and security notes are updated.

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

Descripción

contract difficulty: advanced enhancement needs-discussion web

Difficulty: Advanced

Problem

Only the client address named on the invoice can pay it. A company that pays from a different treasury wallet, or an agency paying on behalf of a client, cannot.

Why it matters

Real B2B payments often come from a wallet other than the one a freelancer was given.

Scope of work

Design and implement an optional payer argument (or a separate entrypoint) where any address can fund an invoice with its own authorisation, while keeping the default client-only rule. Update the events (record the actual payer), tests, UI wording, and the documentation.

Expected outcome

Invoices can be paid by an authorised third party without weakening the default rules.

Acceptance criteria

  • MockAuth tests prove only the declared payer can authorise the transfer.
  • The paid event records the actual payer.
  • The README and security notes describe the new rule.

Relevant files

  • contracts/invoice/src/lib.rs, contracts/invoice/src/test.rs, web/lib/contract.ts, web/app/pay/[id]/page.tsx

Dependencies

Changes the ABI and auth model; needs a redeploy.

Maintainer discussion needed?

Yes: product and security decision first.

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.