Skip to content

feat(api): add hosted charge receipts#61

Open
campbellsinvestment wants to merge 1 commit into
zonelessdev:mainfrom
campbellsinvestment:feat/hosted-receipts
Open

feat(api): add hosted charge receipts#61
campbellsinvestment wants to merge 1 commit into
zonelessdev:mainfrom
campbellsinvestment:feat/hosted-receipts

Conversation

@campbellsinvestment

Copy link
Copy Markdown

Summary

  • Populate existing Stripe-compatible receipt_number and receipt_url fields for new Charges using the existing dashboard URL configuration.
  • Add a public hosted HTML receipt route for Charge receipts with amount, status, receipt metadata, and blockchain details when present.
  • Keep delivery intentionally scoped to hosted HTML only: no email provider, no new dependency, and no dashboard/product surface.

Test plan

  • NX_DAEMON=false npx nx test api
  • npx prettier --check "apps/api/src/modules/Receipt.ts" "apps/api/src/modules/Charge.ts" "apps/api/src/routes/receipts.routes.ts" "apps/api/src/routes/index.ts" "apps/api/src/__tests__/Charge.spec.ts" "apps/api/src/__tests__/Receipt.spec.ts"
  • npx nx lint api was attempted but this repo does not configure an api:lint target.

Notes

  • Uses the existing dashboardUrl config for receipt URLs; no new env variable was added.
  • Email delivery is intentionally out of scope for this PR.

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.

1 participant