feat: payment success/cancel pages on registration form #53
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/westside-landing#53
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
plan-wkq→ Phase 5 (SPA Payment Success/Cancel Pages)Repo
forgejo_admin/westside-appUser Story
As a parent returning from Stripe checkout
I want to see a clear success or cancel message
So that I know whether my payment went through and what to do next
Context
After Phase 4 (dynamic Stripe Checkout Sessions), the Stripe checkout redirects back to
/register?payment=successor/register?payment=cancelled. The SPA needs to handle these query params and show appropriate messaging instead of the registration form.File Targets
Files to modify:
src/routes/register/+page.svelte— handle?payment=successand?payment=cancelledquery paramsFiles NOT to touch:
Acceptance Criteria
?payment=successshows: "Payment received! Your account is being created. Check your email for login credentials."?payment=cancelledshows: "Payment was cancelled. You can try again below." with link back to registration form/register(no query param) shows the registration form as beforeTest Expectations
/register?payment=successshows success message/register?payment=cancelledshows cancel message with retry link/registershows normal formConstraints
$page.url.searchParamsfor query param detectionChecklist
Related
westside-basketball— project