coryhouse / coryhouse/react-restaurant-scriptpro
Add createCheckout mutation; simulate Stripe redirect
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## Goal
Add a `createCheckout` mutation that POSTs the order to a mock endpoint and simulates a Stripe redirect (e.g., a brief delay then navigate to `/checkout/success`).
## Acceptance criteria
- [ ] Submit button calls the mutation
- [ ] Submit disabled while in flight
- [ ] On success, navigate to `/checkout/success`
- [ ] On error, show an error toast and keep the form editable
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the checkout form submit handler and the createCheckout mutation entry point, then trace how the mock endpoint, redirect, and error toast are handled. It is done when submission is wired to the mutation, the button is disabled in flight, success navigates to /checkout/success, and errors leave the form editable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100