Description
src/pdfReceipt.ts generates receipts with a static header. Integrators want to embed their own logo in the receipt header. The generator should accept an optional base64-encoded image and render it in the header section.
Acceptance Criteria
Context
- Target file:
src/pdfReceipt.ts
- Logo must be validated as a non-empty string before use; throw
InvalidLogoError if validation fails
Description
src/pdfReceipt.tsgenerates receipts with a static header. Integrators want to embed their own logo in the receipt header. The generator should accept an optional base64-encoded image and render it in the header section.Acceptance Criteria
ReceiptOptionsaccepts an optionallogoBase64: stringfieldContext
src/pdfReceipt.tsInvalidLogoErrorif validation fails