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.
Context
src/pages/Create.tsxis a placeholder. Users need a form to create a payment request and get a shareable link.Acceptance criteria
payee(prefilled from connected wallet, editable),asset(text input for SAC address, default XLM),amount,memo.POST /api/v1/requests(or call the contract directly for MVP) and render the resulting shareable URL with a copy button.Technical notes
/request/<id>.Testing