Skip to content

feat: implement local PDF receipt generation for buyers#457

Merged
emdevelopa merged 1 commit into
emdevelopa:mainfrom
OperaCode:feat/receipt-pdf-generation
Mar 28, 2026
Merged

feat: implement local PDF receipt generation for buyers#457
emdevelopa merged 1 commit into
emdevelopa:mainfrom
OperaCode:feat/receipt-pdf-generation

Conversation

@OperaCode
Copy link
Copy Markdown
Contributor

Summary

  • add a buyer-facing Download Receipt action on the checkout success state
  • generate the receipt PDF locally in the browser using existing checkout payment data
  • include key receipt fields such as amount, asset, date, payment ID, recipient, and transaction hash
  • add checkout copy updates and Playwright coverage for the new receipt action

Closes #427

Buyers need a simple way to save proof of payment after a successful checkout without introducing server-side PDF generation or extra backend load.

What changed

  • added a Download Receipt button to the settled payment UI on the public checkout page
  • created a lightweight client-side PDF generator for receipt downloads
  • used the checkout’s existing settled payment data to build the receipt
  • added localized strings for receipt download states
  • added e2e tests to verify the receipt action is visible and triggers a PDF download

Validation

  • attempted npm run lint but it is currently blocked by an existing repo dependency issue: missing next-intl/plugin
  • attempted npx playwright test tests/e2e/checkout.spec.ts --grep "receipt|settled" but it is blocked by the same missing dependency during web server startup

Notes

  • this implementation keeps PDF generation fully client-side to match the issue requirements and avoid backend load

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 28, 2026

@OperaCode is attempting to deploy a commit to the Emmanuel's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Mar 28, 2026

@OperaCode Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@emdevelopa emdevelopa merged commit 3259a0b into emdevelopa:main Mar 28, 2026
2 of 3 checks passed
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] Downloadable 'Receipt' PDF Generation

2 participants