Skip to content

feat(remittance): add PDF receipt generator with @react-pdf/renderer - #587

Merged
Sadeequ merged 3 commits into
StellarFlow-Network:mainfrom
ajulaybeeb:feature/receipt-generator
Jul 30, 2026
Merged

feat(remittance): add PDF receipt generator with @react-pdf/renderer#587
Sadeequ merged 3 commits into
StellarFlow-Network:mainfrom
ajulaybeeb:feature/receipt-generator

Conversation

@ajulaybeeb

Copy link
Copy Markdown
Contributor

Fixes #538

This PR introduces a new ReceiptModal component that allows users to generate and download official PDF transaction receipts upon completing a cross-border remittance.

Changes Made:

New Dependency: Integrated @react-pdf/renderer to construct client-side PDF documents without requiring a backend HTML-to-PDF service.
PDF Layout: Designed a clean, professional receipt layout that includes all required metadata:
Date & Time
Verifiable Transaction Hash
Anchor Reference Number
Amount Sent & Received
Applied Exchange Rate & Fees
User Interface: Built an accessible modal wrapper that displays a transaction summary and houses the one-click button.
Hydration Safety: Ensured the PDF rendering logic is wrapped in a client-side boundary (typeof window !== 'undefined') to prevent Next.js hydration mismatches.

@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

@ajulaybeeb 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

@Sadeequ
Sadeequ merged commit be6127c into StellarFlow-Network:main Jul 30, 2026
3 of 7 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.

📄 Receipt-Generator | PDF Transaction Receipt Generator

2 participants