Friendlier response when already-paid player clicks checkout link #483
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/basketball-api#483
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Discovered Apr 13. Querenne (paid Order #25) would see "Player already has an active order (order #25)" if she clicks the new email. Technical wording, poor UX.
Repo
forgejo_admin/basketball-apiUser Story
As a parent who has already paid
I want a clear confirmation when I click a payment link again
So that I'm reassured I'm paid up instead of seeing a raw technical error
Context
GET /checkout/first-paymentraisesHTTPException(409, detail="Player already has an active order for this product (order #N)")for paid players. Browser shows raw JSON. Should be: redirect to a branded confirmation page that says the amount paid and next charge date.File Targets
src/basketball_api/routes/checkout.py— paid-order branch infirst_payment_checkout()(~line 360). Replaceraise HTTPException(409, ...)with a 307 redirect to a friendly URL (e.g.,/checkout/already-paid?player=X).westside-app/src/routes/(app)/checkout/already-paid/+page.svelte— new route showing branded confirmation.Acceptance Criteria
Test Expectations
test_first_payment_paid_still_blockedfor redirect responsepytest tests/test_first_payment.py -vConstraints
Checklist
Related
westside-basketball— project this affectsbasketball-api#479— related fix