Skip to content

Create Invoice Form + Payment Instructions & QR (SEP‑0007) #82

@Cedarich

Description

@Cedarich
  • Complexity: Medium
  • Overview: Implement a form to create invoices and show payer-facing payment instructions, including a SEP‑0007 payment link and QR.
  • Scope:
    • Form fields: invoiceNumber, clientName, clientEmail, description, amount, asset (XLM/USDC), optional asset_issuer (required for non‑native).
    • Client-side validation (e.g., Zod/React Hook Form or built-in): requireds, positive amount, issuer requirement for tokens.
    • On success (e.g., POST /invoices), display: destination address (merchant key), memo (ID), asset, amount.
    • Generate SEP‑0007 link: web+stellar:pay?destination=...&amount=...&asset_code=...&asset_issuer=...&memo=...&memo_type=... (omit issuer for native XLM).
    • Render a QR for the SEP‑0007 link; provide copy‑to‑clipboard for address and memo.
  • Acceptance criteria:
    • Invalid inputs show inline errors; successful submit returns created invoice and instructions.
    • QR scans to a valid SEP‑0007 link (includes memo + memo_type when provided).
    • Copy buttons work and provide “copied” feedback; instructions are clearly formatted.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions