Skip to content

feat: add Stellar payment instructions#397

Open
taherdhanera wants to merge 3 commits into
Lead-Studios:mainfrom
taherdhanera:feat/stellar-payment-instructions-371
Open

feat: add Stellar payment instructions#397
taherdhanera wants to merge 3 commits into
Lead-Studios:mainfrom
taherdhanera:feat/stellar-payment-instructions-371

Conversation

@taherdhanera

@taherdhanera taherdhanera commented Jun 26, 2026

Copy link
Copy Markdown

Closes #371

Claim

/claim #371

Summary

  • Add StellarPaymentInstructions for the post-purchase Stellar payment flow: destination address, memo warning, amount, copy controls, QR code, countdown, expired state, and retry action.
  • Add useOrderStatus to poll GET /api/orders/:id every 5 seconds and redirect to /tickets with the required success toast when the order becomes PAID.
  • Add qrcode.react and focused coverage for rendering, PAID redirect, retry-payment behavior, and related CI-unblock fixes.

Validation

  • npm run lint -> passed with warnings only.
  • npm test -> 25 test files passed, 242 tests passed; global coverage thresholds pass.
  • npm run build -> passed.
  • npm ls qrcode.react -> qrcode.react@4.2.0 installed.

Notes

@taherdhanera

Copy link
Copy Markdown
Author

Pushed a small follow-up on commit f6c3b0e to tighten the user-facing payment copy against the issue text:

  • Memo warning now matches the requested wording: "Required ? your payment will fail without the memo".
  • PAID redirect toast now uses an ASCII-safe escaped constant while rendering the requested "?? Tickets issued! Check your email." message.

Revalidated after the update:

  • npx vitest run src/__tests__/stellar-payment-instructions.test.tsx -> 3 tests passed
  • npx eslint src/features/orders/components/StellarPaymentInstructions.tsx src/hooks/useOrderStatus.ts src/__tests__/stellar-payment-instructions.test.tsx -> passed
  • git diff --check -> passed
  • npm ls qrcode.react -> qrcode.react@4.2.0

PR #397 remains open, non-draft, and mergeable from my side.

@taherdhanera

Copy link
Copy Markdown
Author

Updated this PR against the current main after the branch became dirty from recent upstream merges.

Current state:

  • mergeability is now CLEAN / MERGEABLE
  • /claim #371 and Closes #371 remain in the PR body
  • local verification passed: npm run lint (0 errors; existing warnings only) and npm test (25 files, 242 tests)

@taherdhanera taherdhanera force-pushed the feat/stellar-payment-instructions-371 branch from 9cf6ccc to b0d8e9a Compare July 11, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FE-xxx: feat: build Stellar payment instructions UI — address, memo QR, countdown, and auto-confirm

1 participant