Skip to content

Build the Create-request form #6

Description

@iexwr

Context

src/pages/Create.tsx is a placeholder. Users need a form to create a payment request and get a shareable link.

Acceptance criteria

  • Form fields: payee (prefilled from connected wallet, editable), asset (text input for SAC address, default XLM), amount, memo.
  • Client-side validation (amount > 0, memo length) before submit.
  • On submit, POST /api/v1/requests (or call the contract directly for MVP) and render the resulting shareable URL with a copy button.
  • Shows inline error and success states.

Technical notes

  • Use React Hook Form or plain controlled state; keep it dependency-light.
  • Link format: /request/<id>.

Testing

  • Component test: fill form, mock the API, assert the shareable link is shown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveStellar Wave for StackPayenhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions