Manage Certificates

What certificates are used for

A certificate in Joom Donation is a PDF "thank you" document generated for a single donation. It is a built-in component feature (no separate plugin) and works the same way in Joomla 5 and Joomla 6. It is not an email, a receipt or an invoice. Receipts and invoices are controlled by the donation receipt settings in Configuration, and the confirmation emails are controlled by the email settings. A certificate must not be described to donors as a replacement for a tax receipt.

Three different things are involved:

Item What it is Where you manage it
Certificate template The design: HTML, CSS, page size and orientation. Components → Joom Donation → Others → Certificates (the screen title is Certificate Templates)
Certificate One PDF plus one database record, created for one donation record. There is no administrator screen for issued certificates.
Donation record A row in Donors. The certificate is linked to this row. Donors (see Manage Donors)

Before you start you need: at least one published template, a Campaign with certificates enabled and a template selected, and a donation that reaches the Paid state. The Certificates menu item is part of the component's own administrator menu (under Others), so no plugin is needed; if it is missing, update/reinstall the component so the menu is rebuilt.

Manage certificate templates

  1. Go to Components → Joom Donation → Others → Certificates. The list shows ID, Title, Page Size, Orientation, Published and Actions. You can search by title and filter by published state (All, Published, Unpublished). The newest template (highest ID) is shown first.
  2. Select New to create a template, or select a title (or tick a row and use Edit) to change one. Installation creates a published sample called Default Certificate Template.
  3. Complete the form and use Save, Apply, Save & New or Cancel. Title and HTML Content are required (the form checks the title in the browser). Page size defaults to A4 and orientation to Portrait.
  4. Use Preview (in the list's Actions column, or the toolbar of an already-saved template) to open a sample PDF in a new tab. Preview uses the saved template and fixed sample data (donor "John Doe", amount 100.00, campaign "Sample Campaign", a code beginning with PREVIEW). Save before previewing, and always test with real campaign settings too.
  5. Use Clone in the list to copy a template. The copy is named "... (Copy)" and is unpublished; publish it before choosing it in a campaign.
  6. Use the list toolbar Publish, Unpublish and Delete for selected templates. These actions depend on the Joomla permissions of the administrator (core.edit.state, core.delete).
Setting What it controls Where it takes effect
Title Name shown in the list and in the campaign's template drop-down. Administrator only
Published Only published templates appear in the campaign drop-down and can be used to generate a certificate. Campaign form; certificate generation
Page Size A4 or Letter. PDF generated for new certificates and previews
Orientation Portrait or Landscape. PDF generated for new certificates and previews
HTML Content The body of the PDF, with placeholders. PDF
CSS Styles CSS added before the HTML. Placeholders also work here. PDF
Logo, Signature, Background Image JPG, PNG or GIF uploads stored under media/com_jdonation/certificates/templates. See the note below

Images: at the time of writing, the certificate builder does not insert the uploaded logo, signature or background into the PDF, and the {organization_logo_url} and {signature_image_url} placeholders are replaced with empty text. Put any graphics directly in the HTML (for example an <img> with an absolute URL) and check the result with Preview. The PDF is created with TCPDF, so only simple HTML and CSS are reliable.

Placeholders

Placeholders are written in curly braces and are replaced in both HTML and CSS. Email placeholders such as [DONOR_NAME] do not work in templates. Unknown placeholders are left as typed.

Placeholder Source
{certificate_code} Random 24-character code generated for the certificate
{donation_id} ID of the donation record
{donor_name} First and last name; the email address if both are empty; Anonymous if the campaign option Show Donor Name on Certificate is No or the donation is marked anonymous (Anonymous donation / hide donor)
{donation_amount} Campaign currency symbol (or the configured symbol) followed by the amount with two decimals
{donation_currency} Campaign currency, or the configured currency
{donation_date} The donation's payment date, formatted like "March 5, 2025"
{campaign_title}, {campaign_id} Campaign of the donation
{organization_name}, {site_name} Joomla site name
{site_url} Site root URL
{verify_url} Public verification link containing the certificate code

Minimal example:

<div style="text-align:center">
  <h1>Certificate of Appreciation</h1>
  <p>Presented to <strong>{donor_name}</strong></p>
  <p>for a donation of {donation_amount} to {campaign_title} on {donation_date}.</p>
  <p style="font-size:10px">Code {certificate_code} &middot; Verify: {verify_url}</p>
</div>

Apply a certificate and verify eligibility

Certificates are enabled per campaign. There is no global switch and no automatic default template.

  1. Open Campaigns and edit the campaign, then open the Certificates tab (Certificate Settings).
  2. Set Enable Certificates to Yes and choose a Certificate Template (the drop-down lists only published templates). Without a selected template nothing is generated.
  3. Set Send Certificate via Email, Allow Certificate Download and Show Donor Name on Certificate. For a new campaign the defaults are: certificates No, email Yes, download Yes, show name Yes.
  4. Save the campaign.

Terms used below:

  • Eligible – the donation record is Paid (published = 1) and its campaign has certificates enabled with a published template. The generator itself does not test the paid state; the calling code does.
  • Generated – the PDF is written to media/com_jdonation/certificates/ and a record is saved with a code. Only one certificate per donation is ever created; if one exists, nothing new is made.
  • Sent – the certificate is attached to an email.
Donation scenario When eligible How the certificate is generated How the donor receives it
Online payment succeeds (gateways that use the standard payment-success routine, e.g. Stripe, PayPal, Paystack, Square) When the gateway confirms payment and the record becomes Paid Immediately in the payment-success routine, before the confirmation emails Separate certificate email if Send Certificate via Email is Yes; the confirmation email also attaches an existing certificate; download if allowed
Offline payment (bank transfer, cash) submitted on the site Not yet: the record stays Pending/unpaid and no certificate exists Nothing is generated at submission None until the record is paid
Offline record changed from Pending to Paid by an administrator (edit and save as Paid, or the Publish toolbar action) When changed to Paid Immediately, if the record was previously unpaid Separate certificate email if enabled, plus the "offline payment received" email, which attaches the certificate
Record added manually in Donors and saved as Paid On save On save (after the new-record emails have been prepared, so the first confirmation email may not contain it) Separate certificate email if enabled; download if allowed
Record added manually as unpaid Not yet Nothing None
Recurring renewal Only where the gateway creates a new paid record for the renewal through the standard routine (verified in the Stripe code); each such record gets its own certificate Same as online payment Same as online payment
Donor opens Donation History or the donor's own donation list Paid record with certificates and download enabled and no certificate yet Created on demand when the page is viewed Download link on that page

Other gateways or custom flows that do not use the standard routine will not generate certificates at payment time. Check them with a test donation.

Issue, download, or resend a certificate

There is no screen, button or toolbar action for issuing, regenerating, downloading, resending or revoking a certificate for a donor from the administrator. What exists:

Administrator

  • To issue: make sure the campaign is configured, then change the unpaid donation to Paid (see Manage Donors). Verify by checking the donor receives an email with a PDF, or by opening Donation History as the donor.
  • Resend email in Donors resends the donor's donation emails; for a Paid record the existing certificate PDF is attached to that email. It does not create or recreate a certificate, and it does nothing useful if none exists yet.
  • Changing an already-Paid record does not create a certificate. If the record was paid before certificates were enabled, either let the donor open their donation history (when download is enabled) or leave it; an administrator cannot trigger it manually.
  • The code and download_count are stored in the #__jd_certificates table; there is no administrator list to search them.

Donor

  • Email: a PDF attachment (see the table above). The certificate email subject is "Donation Certificate - {campaign title}".
  • Download: a logged-in donor who owns the donation (or a Super User) sees Download Certificate in the Certificate column of Donation History (or the donor's donation list) when Allow Certificate Download is Yes. There is no signed download link for guests.
  • Verification: anyone with the code can open the public verification page. It shows the code, campaign, amount, date and status, and does not show the donor name or email.

Update or retire a certificate template

Certificates are stored PDFs. They are created once and are not rebuilt from current data.

  • Editing a template changes only certificates created afterwards and previews. Existing PDFs do not change.
  • Changing a donor's name later, or changing the donation status, does not change an existing PDF, and does not remove or revoke it. The public verification page reads the amount and date from the current donation record, so those values can differ from an old PDF if the record is edited.
  • Switching a campaign to another template affects only donations that do not yet have a certificate. Donations that already have one keep it.
  • Unpublish or Delete a template that a campaign still uses: the campaign setting is not cleared. New donations then get no certificate, and a warning "Certificate template not found or unpublished" is queued. Before retiring a template, select another published template in each campaign that uses it.
  • Deleting a template or a donation does not delete the PDF file, and no code removes certificates when a donation is refunded.
  • Clone a template, edit the copy, preview, publish it, then switch the campaign.

Common Setup Scenarios

One shared template

  • Goal: thank all donors with the same design.
  • Setup: edit the Default Certificate Template, then enable certificates in each campaign and choose it.
  • Trigger: donation becomes Paid.
  • Donor sees: PDF attachment and, if enabled, a download link in the donation history.
  • Verify: preview, run a test donation with a test email address, open the PDF and the {verify_url} link.

Template for one campaign

  • Goal: a custom design for one campaign.
  • Setup: clone the template, publish the copy, select it only in that campaign's Certificates tab.
  • Trigger and result: as above, only for that campaign.
  • Verify: the campaign title and design in the generated PDF.

Offline donation

  • Goal: issue the certificate once money is received.
  • Setup: certificates enabled on the campaign.
  • Trigger: change the Pending record to Paid in Donors.
  • Donor sees: emails with the certificate attached (a separate certificate email may also arrive).
  • Verify: the record shows Paid; check the email log under Tools → Email Logs and the donor's history.

Donor cannot find the certificate

  • Check the campaign's settings, that the record is Paid, and that Allow Certificate Download is Yes. Ask the donor to log in with the account linked to the record (the User field) and open their donation history. If the record has no linked user, the donor cannot download it; check the emails instead.

Troubleshooting and verification checklist

  1. Feature enabled? Campaign → Certificates → Enable Certificates = Yes.
  2. Template applied? A template is selected and published. Otherwise nothing is generated (a warning appears when a selected template is unpublished or deleted).
  3. Eligible? The record in Donors is Paid. Pending offline records and unsupported gateways do not generate.
  4. Generated? A file certificate_<code>.pdf exists in media/com_jdonation/certificates/ and the folder is writable by PHP. Errors during creation appear as Joomla messages ("Error generating certificate" / "Error generating PDF"). If a certificate already exists for the donation, no second one is created even after template changes.
  5. Received? Check spam, the email log, and the campaign's email option. If the email is not sent but download is allowed, the donor can still download it from the history page.
  6. Download denied? The donor must be logged in as the record's user and Allow Certificate Download must be Yes. If the PDF file was moved or deleted, the donor sees "file not found"; the stored path is an absolute server path, so it breaks after moving a site.

Use fake donor names and test email addresses when verifying. Never publish a real certificate link or code in documentation.