elghaied

payload invoicepdf

by elghaied
Payments
v3
^3.79.0
MIT

Overview

Summary generated from the README

Adds invoices and quotes collections plus a shop-info global to Payload 3.x. PDFs are rendered with react-pdf from four built-in templates or custom JSX templates, and can be emailed to clients. Requires Payload 3.79 or newer and a media collection with uploads enabled.

Features

  • Four built-in PDF templates: Classic, Modern, Minimal and Bold
  • Auto-numbered invoices and quotes with line items, tax and due dates
  • Email documents as PDF attachments or live links with send history
  • Secure client link to accept or decline quotes, creating a draft invoice on acceptance
  • Customer and product autofill from existing collections
  • Versioned PDF history with download from the admin

Use cases

  • Generate and email branded PDF invoices to customers from the Payload admin
  • Send quotes that clients accept online and convert them into draft invoices
  • Autofill invoice line items from an existing product catalog

From the author

Payload CMS 3.x plugin for invoice and quote management with PDF generation, email sending, quote acceptance workflows, and a rich admin UI

Installation

npm i payload-invoicepdf

9

Stars

1

Forks

0

Open Issues

8 months ago

Last Updated

5

Weekly Downloads

v1.0.0

npm Version

526.3 KB

Unpacked Size

1

Dependencies

GitHub stars

90 since Sep 6

Show data
GitHub stars by day (UTC)
DateStars
Dec 5, 20269
Dec 4, 20269
Dec 3, 20269
Dec 2, 20269
Dec 1, 20269
Nov 30, 20269
Nov 29, 20269
Nov 28, 20269
Nov 27, 20269
Nov 26, 20269
Nov 25, 20269
Nov 24, 20269
Nov 23, 20269
Nov 22, 20269
Nov 21, 20269
Nov 20, 20269
Nov 19, 20269
Nov 18, 20269
Nov 17, 20269
Nov 16, 20269
Nov 15, 20269
Nov 14, 20269
Nov 13, 20269
Nov 12, 20269
Nov 11, 20269
Nov 10, 20269
Nov 9, 20269
Nov 8, 20269
Nov 7, 20269
Nov 6, 20269
Nov 5, 20269
Nov 4, 20269
Nov 3, 20269
Nov 2, 20269
Nov 1, 20269
Oct 31, 20269
Oct 30, 20269
Oct 29, 20269
Oct 28, 20269
Oct 27, 20269
Oct 26, 20269
Oct 25, 20269
Oct 24, 20269
Oct 23, 20269
Oct 22, 20269
Oct 21, 20269
Oct 20, 20269
Oct 19, 20269
Oct 18, 20269
Oct 17, 20269
Oct 16, 20269
Oct 15, 20269
Oct 14, 20269
Oct 13, 20269
Oct 12, 20269
Oct 11, 20269
Oct 10, 20269
Oct 9, 20269
Oct 8, 20269
Oct 7, 20269
Oct 6, 20269
Oct 5, 20269
Oct 4, 20269
Oct 3, 20269
Oct 2, 20269
Oct 1, 20269
Sep 30, 20269
Sep 29, 20269
Sep 28, 20269
Sep 27, 20269
Sep 26, 20269
Sep 25, 20269
Sep 24, 20269
Sep 23, 20269
Sep 22, 20269
Sep 21, 20269
Sep 20, 20269
Sep 19, 20269
Sep 18, 20269
Sep 17, 20269
Sep 16, 20269
Sep 15, 20269
Sep 14, 20269
Sep 13, 20269
Sep 12, 20269
Sep 11, 20269
Sep 10, 20269
Sep 9, 20269
Sep 8, 20269
Sep 7, 20269
Sep 6, 20269
npm weekly downloads

3−60 since Sep 6

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 20263
Dec 4, 20263
Dec 3, 20263
Dec 2, 20265
Dec 1, 20268
Nov 30, 20268
Nov 29, 20267
Nov 28, 20267
Nov 27, 20267
Nov 26, 20268
Nov 25, 20266
Nov 24, 20263
Nov 23, 20263
Nov 22, 20265
Nov 21, 20265
Nov 20, 20264
Nov 19, 20264
Nov 18, 20265
Nov 17, 20266
Nov 16, 20268
Nov 15, 20266
Nov 14, 20266
Nov 13, 20266
Nov 12, 202610
Nov 11, 20269
Nov 10, 20269
Nov 9, 202610
Nov 8, 202611
Nov 7, 202611
Nov 6, 202611
Nov 5, 20267
Nov 4, 20267
Nov 3, 202610
Nov 2, 202610
Nov 1, 20269
Oct 31, 20269
Oct 30, 202610
Oct 29, 20268
Oct 28, 20268
Oct 27, 20265
Oct 26, 20262
Oct 25, 20263
Oct 24, 20269
Oct 23, 20268
Oct 22, 202611
Oct 21, 202611
Oct 20, 202613
Oct 19, 202614
Oct 18, 202613
Oct 17, 20269
Oct 16, 20269
Oct 15, 20267
Oct 14, 20267
Oct 13, 20266
Oct 12, 20265
Oct 11, 20266
Oct 10, 20264
Oct 9, 20264
Oct 8, 20263
Oct 7, 20263
Oct 6, 20261
Oct 5, 20261
Oct 4, 20261
Oct 3, 20261
Oct 2, 20264
Oct 1, 20264
Sep 30, 20264
Sep 29, 20265
Sep 28, 20265
Sep 27, 20265
Sep 26, 20269
Sep 25, 20266
Sep 24, 20266
Sep 23, 20267
Sep 22, 20267
Sep 21, 20267
Sep 20, 202617
Sep 19, 202617
Sep 18, 202623
Sep 17, 202629
Sep 16, 202630
Sep 15, 202631
Sep 14, 202641
Sep 13, 202633
Sep 12, 202631
Sep 11, 202625
Sep 10, 202619
Sep 9, 202619
Sep 8, 202649
Sep 7, 202661
Sep 6, 202663

Each point is npm's rolling 7-day download count.

Health Score

43/100Fair

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1178652475-root.svg)](https://payloaddirectory.dev/plugins/1178652475-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1178652475-root"><img src="https://payloaddirectory.dev/badge/1178652475-root.svg" alt="Payload Directory"></a>
Updated Mar 11, 2026Created Mar 11, 2026Published Mar 11, 2026

README

payload-invoicepdf

Professional PDF invoices and quotes for Payload CMS

npm version license Payload 3.x


A Payload CMS 3.x plugin that adds complete invoice and quote management — JSX-based PDF templates, email sending, quote acceptance workflows, customer autofill, and a rich admin UI — out of the box.

Features

  • PDF Generation — 4 built-in templates (Classic, Modern, Minimal, Bold) rendered with @react-pdf/renderer. Create custom templates with JSX.
  • Invoices & Quotes — Full collections with auto-numbering (INV-2026-0001), status tracking, line items, tax calculation, and due dates.
  • Email Sending — Send invoices/quotes via email with PDF attachments or live document links. Tracks send history per document.
  • Quote Acceptance — Clients receive a secure link to view, accept, or decline quotes. Accepting auto-creates a draft invoice.
  • Customer Autofill — Connect your existing customer collection. Select a customer and client fields fill automatically.
  • Product Autofill — Link your product catalog. Add a product to a line item and description + price populate instantly.
  • PDF History — Every generated PDF is stored and versioned. Browse and download previous versions from the admin.
  • Admin UI — Tabbed document views, sidebar actions (download, generate, send, convert), email composer drawer, and related document links.

Screenshots

Quote Management

Quote document view with client details, actions sidebar, and related invoices

PDF History

PDF version history with download and delete options

Send Email Drawer

Email composer with delivery type toggle, template selection, and PDF attachment

Send History

Send history tab showing all emails sent for a document

Quote Acceptance Page

Client-facing quote page with Accept and Decline buttons

Email Template

Professional email received by client with View Quote button and PDF attachment

Quick Start

npm install payload-invoicepdf
# or
pnpm add payload-invoicepdf
// payload.config.ts
import { invoicePdf, builtInTemplates } from 'payload-invoicepdf'

export default buildConfig({
  // ...your config
  plugins: [
    invoicePdf({
      productCollection: 'products',
      productFieldMapping: {
        name: 'name',
        price: 'price',
      },
      templates: builtInTemplates,
    }),
  ],
})

That's it. You now have invoices and quotes collections with PDF generation, a shop-info global for your company details, and sidebar buttons for downloading, generating, and emailing documents.

Built-in PDF Templates

TemplateStyle
ClassicTraditional business invoice with clean lines
ModernSleek, minimal layout with accent colors
MinimalUltra-clean whitespace-heavy design
BoldStrong color header, high contrast

Select a template per document, or set a default. Build your own with @react-pdf/renderer — see the Custom Templates Guide.

Documentation

GuideDescription
Getting StartedInstallation, configuration, and your first invoice
Configuration ReferenceAll config options with examples
PDF TemplatesBuilt-in templates and how to select them
Custom TemplatesBuild your own PDF and email templates with JSX
Email SendingEmail setup, templates, and send history
Quote AcceptanceSecure link workflow for client quote responses
Customer AutofillConnect your customer collection for autofill

Requirements

  • Payload CMS ^3.79.0
  • Node.js ^18.20.2 or >=20.9.0
  • A media collection with uploads enabled (or specify a custom mediaCollection)

License

MIT

Similar plugins