Numbered PDF invoices and credit notes for every payment made on your LaraClassifier or JobClass site: plans, advertising, Marketplace orders, reservations and tickets.

Automatic Invoices

An invoice is issued as soon as a payment is received, and emailed to the customer as a PDF.

Unbroken Numbering

One series per issuer and per year, with your prefix. A number is never skipped or used twice.

VAT Numbers and Tax

Your tax number and your customers’, a rate per country, and reverse charge for foreign companies.

Credit Notes

An invoice is never changed: a refund is recorded by a credit note, in full or for an amount.

How It Works

The add-on watches the payments your site records and issues one invoice for each of them. It needs no change to the application or to the other add-ons, and does not touch the payment itself: a problem with an invoice never blocks a payment.

The amounts paid on the site already include the tax. Each invoice therefore shows the amount before tax and the tax contained in what was paid, so its total is always the amount the customer really paid.

The issuer and the customer are copied onto the invoice the day it is issued. Changing your company details or a customer’s billing details later never changes an invoice that exists.

Requirements

  • LaraClassifier / JobClass v19.2.0 or later
  • PHP 8.3+
  • MySQL 8.0+
  • TCPDF, which the application already installs, to write the PDF files

Installation

Step 1: Upload the add-on

Go to Admin panel → Extensions → Add-ons, click Upload add-on and drop the add-on's .zip file into the upload area (50 MB maximum). The archive is extracted into extensions/addons/billing/ and Billing & Invoicing appears in the list, deactivated.

Cannot upload from the browser? Unzip the archive on your computer and copy the add-on folder to extensions/addons/billing/ over FTP or SSH: its addon.json file must sit directly inside that folder. Then open Admin panel → Extensions → Add-ons. The page scans extensions/addons/ every time it loads, so the add-on is listed straight away (the Sync button runs the same scan on demand).

Step 2: Activate the add-on

Click Activate on the Billing & Invoicing card. It is a paid add-on, so a dialog asks for its purchase code, which is verified before anything else happens: an invalid code is rejected in the dialog and nothing is changed.

Once the code is accepted, activation runs in one pass: it creates the add-on's database tables (its migrations), registers its permissions, runs its seeders and publishes its public assets. Reload the page to see its new entry in the Add-ons section of the admin sidebar.

Step 3: Configure

Open Admin panel → Billing from the Add-ons section of the sidebar and set the add-on up: see Configuration.

Purchase Code (License Key)

Billing & Invoicing is sold as a separate product, so it has its own purchase code (license key), distinct from the purchase code of the main application and from the one of every other add-on. You are asked for it when you activate Billing & Invoicing in Admin panel → Extensions → Add-ons.

Our products are sold on three platforms. The way you receive a purchase code depends on where you bought the product.

Platform / Marketplace How you get the purchase code Where to find it again
bedigit.com Store
In-site purchase (Shop)
Generated automatically when the order is paid, then sent by email, either in its own license email, or inside the order confirmation email. My Account → My Licenses on bedigit.com
Gumroad Created as soon as Gumroad notifies us of the sale, then sent in a separate email, in addition to the Gumroad receipt. The license email, your Gumroad Library, and My Account → My Licenses on bedigit.com
Envato Market
CodeCanyon
Issued by Envato, not by us, and never sent by email: you download it yourself from your Envato account. Envato account → Downloads → License certificate & purchase code
Check your spam folder. For both bedigit.com Store and Gumroad purchases, the purchase code is delivered by email. Automated license emails are very often filtered, so if the message is not in your inbox, look in your spam / junk folder before contacting support, and add our sender address to your contacts or allow list.

1. bedigit.com Store (in-site purchase)

  • As soon as the order’s payment status becomes Paid, a license key is generated automatically for every licensed item in the order (one key per purchased unit: buying 3 units gives 3 distinct keys).
  • It is emailed to the address used on the order, either in a dedicated license email or inside the order confirmation email. Check your inbox and your spam / junk folder.
  • The key stays available in your account under My Account → My Licenses. Keys are masked in the list; open the license detail page to reveal and copy the full key, see the domains it is activated on, and deactivate a domain to free an activation slot.
  • The matching invoice is under My Account → My Orders.

2. Gumroad

  • A Gumroad purchase produces two separate emails: the Gumroad receipt (sent by Gumroad, giving access to the files) and a license key email (sent by bedigit.com) that contains your purchase code.
  • The license key email is generated as soon as Gumroad notifies us of the sale, so it normally arrives within seconds of the payment. Here too, check your inbox and your spam / junk folder.
  • When the Gumroad product uses Gumroad’s own license-key feature, the same key also appears in your Gumroad receipt and under Library → your purchase on gumroad.com.
  • Use the same email address on bedigit.com as on Gumroad: your keys are then linked to your account automatically and listed under My Account → My Licenses, even if you register after the purchase. You can also add a Gumroad key manually from My Account → My Gumroad Licenses.

3. Envato Market (CodeCanyon)

  • Envato purchase codes are issued and delivered by Envato Market, never emailed by us, so there is nothing to look for in your spam folder: you retrieve the code from your Envato account.
  • Log in to your Envato / CodeCanyon account, open the Downloads page, find the item, and choose License certificate & purchase code from the Download dropdown. The code is written in that certificate.
  • An Envato purchase code looks like 12345678-90ab-cdef-1234-567890abcdef (8-4-4-4-12 characters). It never changes, and renewing item support does not issue a new one.
  • Official Envato article: Where Is My Purchase Code?
Lost your purchase code? Search your mailbox (spam folder included) for “license” or “purchase code”, then check My Account → My Licenses on bedigit.com for Store and Gumroad purchases, or Downloads → License certificate on Envato. If it is still missing, open a ticket on our Help Center with your order number (Store), Gumroad sale ID or buyer email (Gumroad), or Envato username and item name (Envato).

Configuration

Go to Admin panel → Billing → Settings. Fill in the Your company tab before you turn the add-on on: an invoice cannot be changed once issued.

Check your local rules. What an invoice must show differs from one country to another. Ask your accountant before you issue your first documents.

General

SettingDefaultDescription
Issue invoicesOnAn invoice is issued as soon as a payment is received. Turning this off stops new invoices and keeps the ones already issued.
Email the documentsOnEach invoice and credit note is sent to the customer when it is issued.
Plans / Advertising / Marketplace / Reservations / TicketsOnThe kinds of payment that are invoiced. A kind whose add-on is not installed is simply ignored.
Who invoices what members sellThe websiteSee Who Issues the Invoice.
Invoice your commission to the sellersOnOnly used when the sellers invoice their own sales.
Credit notes on refundsOnA credit note is issued when a payment or an order is marked as refunded.

Your company

Name, country (2-letter code), address, tax number, registration number, email address and phone number, as they are printed on the documents. An empty name uses the name of the site.

Numbering, Tax and Documents

SettingDefaultDescription
Invoice prefix / Credit note prefixINV- / CN-Written before the number. The two prefixes must differ.
Number of digits55 gives 00001.
First invoice number1To carry on from the numbering of a former tool. Only used when a series starts.
Restart every yearOnThe year is written in the number and the series restarts at 1 on January 1st.
Show tax on the documentsOffOff: the documents show a tax of 0% and your note.
Name of the taxVATVAT, GST, Sales tax…
Default rate (%)0The rate contained in the prices paid on the site.
Rate appliedDefault rateThe default rate for everybody, or the rate of the customer’s country.
Reverse charge for foreign companiesOffA customer of another country who gave a tax number is invoiced without tax.
Note on the documents without taxFor example the legal notice of a business that does not charge VAT.
Paper sizeA4A4 or US Letter.
Colour#1f2937Colour of the title and of the table header.
Show the logoOnThe logo of the site (PNG, JPG or GIF), on the documents it issues.
Attach the PDF to the emailsOnOff: the email only has the link to the document.
FooterPrinted at the bottom of the documents the site issues: legal notices, bank details…

What Is Invoiced

  • Plans: promotions of a listing, subscriptions and every other plan paid through a payment gateway. A payment that waits for your approval (offline payment) is invoiced when you approve it. A visitor who promoted a listing without an account gets the invoice at the email address of the listing.
  • Advertising: the orders of the Self-serve Ad Manager add-on.
  • Marketplace (LaraClassifier): the orders of the Marketplace add-on, once paid and accepted.
  • Reservations (LaraClassifier): the booking fee or the full payment of the Booking add-on.
  • Tickets (LaraClassifier): the booking fee or the full payment of the Event Ticketing add-on, with one line per ticket type.

A payment is only ever invoiced once, even when the payment gateway reports it twice.

Numbering

With the default settings the first invoice of 2026 is INV-2026-00001 and the first credit note CN-2026-00001. Each issuer has its own series: the invoices issued in the name of the seller 15 are numbered INV-2026-S15-00001, INV-2026-S15-00002… A number is taken when the document is saved, so a series has no gap.

Tax

The site charges the prices you set: the add-on does not add tax on top, it works out the tax contained in the amount paid. With a rate of 20%, a payment of 120.00 is invoiced as 100.00 before tax and 20.00 of tax.

To apply the rate of each customer’s country, choose The rate of the customer’s country and fill in Admin panel → Billing → Tax rates. A country without a rate uses the default rate. The country is the one of the customer’s billing details, or of their account when they gave none.

Who Issues the Invoice

For what your site sells itself (plans, advertising, booking fees), the invoice is always issued by your company. For what members sell through the site (Marketplace orders, reservations and ticket orders paid in full), you choose:

  • The website: one invoice per order, in your company’s name, each line saying who it was sold by.
  • The seller: one invoice per seller, in the seller’s name and in their own series, from the billing details of their account. A seller says there whether they collect tax, and at which rate. Your commission is then invoiced to the seller by your company, once the sale is final (the seller’s money is released).

Changing this setting only applies to the next payments: an order already invoiced one way is never invoiced the other way.

Credit Notes

A credit note is issued automatically when a plan payment, an advertising order, a part of a Marketplace order, a reservation or a ticket order is marked as refunded. From the page of an invoice you can also issue one by hand, in full or for an amount, with a reason. An invoice is never credited for more than its total.

A credit note does not send money back. It records a refund you make at your payment provider.

Billing Details

Members open My account → Invoices to download their documents and to fill in their billing details: company name, tax number, registration number and address. These details are printed on their next invoices. When sellers invoice their own sales, the same page shows the documents issued in their name.

PDF Documents

A document is written in the language of its customer, with right-to-left layout where the language needs it. The PDF library cannot write some scripts (Chinese, Japanese, Korean, Hindi, Bengali and a few others): for those, the link opens a page to print or to save as PDF from the browser, and the email carries the link instead of an attachment.

The link of a document holds a long secret token: it opens the document without an account, which is what lets a customer open it from the email.

Past Payments

To invoice the payments received before the add-on was installed, click Invoice past payments on the invoices list and, if you wish, give a start date. Payments that already have an invoice are skipped and nobody is emailed: the documents wait in the accounts. The invoices are numbered and dated on the day you issue them.

Invoices List

Admin panel → Billing → Invoices lists every document, with filters by kind, status, issuer and date. Export (CSV) gives the filtered list to your accountant, credit notes as negative amounts. The page of a document shows it as the customer sees it, and lets you download the PDF, email it again and issue a credit note.

Permissions

  • admin.billing.view: see and export the documents
  • admin.billing.edit: email a document, issue a credit note, invoice past payments, manage the tax rates
  • admin.setting.edit: change the settings

Notifications

The Invoices and credit notes notification type covers the two emails sent to customers. Both have a preview in Admin panel → Settings → Notifications.

CLI

php artisan billing:backfill issues the invoices of the payments that have none. --from=2026-01-01 starts from a date, --source=plans limits it to one kind of payment (plans, admanager, marketplace, booking, ticketing).

For Developers

Another add-on can have its own payments invoiced:

use Addons\Billing\Services\InvoiceIssuer;
use Addons\Billing\Support\DraftLine;
use Addons\Billing\Support\InvoiceDraft;

if (addon_active('billing')) {
    app(InvoiceIssuer::class)->issue(new InvoiceDraft(
        kind: 'tickets',
        sourceType: Ticket::class,
        sourceId: $ticket->id,
        currency: 'USD',
        lines: [new DraftLine('Concert ticket', 45.00, 2.0)],
        customerUserId: $ticket->user_id,
    ));
}

The total of a line is what was paid for it, tax included. The same record and kind always give the same invoice, so the call is safe to repeat.

Translations

The add-on ships in 18 languages: Arabic, Bengali, Chinese, English, French, Georgian, German, Hebrew, Hindi, Italian, Japanese, Portuguese, Romanian, Russian, Spanish, Thai, Turkish and Ukrainian. Its strings are in extensions/addons/billing/resources/lang/<locale>/messages.php. A language without a file falls back to English.

Updating

An update only replaces the add-on's files. Its database tables and data, its settings, its activation state and its recorded purchase code are all kept, so do not deactivate or remove the add-on before updating it. Back up your database first all the same.

Method 1: Upload the new version (recommended)

  1. Download the latest .zip file of the add-on.
  2. Go to Admin panel → Extensions → Add-ons and click Upload add-on.
  3. Drop the .zip file into the upload area.
  4. Because Billing & Invoicing is already installed, a prompt shows the installed version and the new one. Click Replace: the extensions/addons/billing/ folder is swapped for the new files. Cancelling the prompt discards the upload.

Method 2: Replace the files by hand

  1. Over FTP or SSH, delete the extensions/addons/billing/ folder and upload the new one in its place. Replace the whole folder rather than copying over it, so files dropped by the new version do not linger.
  2. Open Admin panel → Extensions → Add-ons: the page re-reads addon.json and the card shows the new version number.

After the files are replaced

New database tables or columns. When a new version adds some, create them by running php artisan migrate --force over SSH, or without SSH by clicking Deactivate then Activate on the add-on's card: activation runs every pending migration (and asks for the purchase code again). Your data is not touched either way.

If your installation caches its configuration or routes (php artisan config:cache, route:cache), run php artisan optimize:clear after the update.

Uninstallation

Switching an add-on off without losing anything is a deactivation: go to Admin panel → Extensions → Add-ons, click Deactivate on the Billing & Invoicing card and confirm.

  • The add-on is no longer loaded: its routes, views, admin sidebar entry and front-end pages stop answering.
  • Its database tables and all the data they hold are kept, and its files stay under extensions/addons/billing/. Nothing is deleted.
  • Its permissions and its recorded purchase code stay in the database. Only Remove deletes them.
  • Deactivation is refused while another active add-on depends on this one: deactivate that add-on first.

Click Activate on the same card to switch it back on. As for a first activation, the purchase code is asked for and verified again; then any pending migrations run, the assets are republished, and the add-on picks up exactly where it left off.

Removing

Removing is permanent and destroys the add-on's data. The Remove button only appears on a deactivated add-on, so removal is always two steps:

  1. Deactivate Billing & Invoicing (see Uninstallation).
  2. Click Remove on its card and confirm the prompt.

The admin panel then, in one pass:

  • runs the add-on's uninstall hook, which deletes the add-on's settings;
  • revokes the permissions declared in its addon.json;
  • rolls back its migrations (this drops its database tables and every row they hold) and purges its entries from the migrations table, so a later reinstall migrates from scratch;
  • deletes its published assets: public/addons/billing/, public/vendor/billing/ and storage/app/public/addons/billing/;
  • deletes the add-on directory extensions/addons/billing/;
  • deletes its row in the addons table (the recorded purchase code goes with it) and clears the application cache.

The payments themselves are not changed. Your invoices and credit notes are deleted with the add-on: export them, and keep their PDF files, before removing it. Most countries require invoices to be kept for several years.

This cannot be undone. Back up your database before removing an add-on whose data you may still need: installing it again later creates empty tables, not your old content, and asks for the purchase code again.

Removal is refused, with an explanatory message and before anything is destroyed, when the add-on is still active, when another active add-on depends on it, or when the web server (PHP) user cannot delete extensions/addons/billing/. In that last case, give that user write permission on the directory and on its parent, then try again.

Deleting the folder over FTP or SSH is not equivalent: the add-on is only switched off, and its tables, its entries in the migrations table and its addons row are all left behind. Use Remove in the admin panel instead.

Troubleshooting

A payment has no invoice

  • Check that Issue invoices and the switch of that kind of payment are on.
  • A payment of 0, and a payment that still waits for your approval, are not invoiced.
  • Use Invoice past payments to issue what is missing.

The link opens a page to print instead of a PDF

  • The document contains a script the PDF library cannot write. Print the page, or save it as PDF from the browser.

The emails are not received

  • When the queue is not sync, a queue worker must be running.
  • Check that the Invoices and credit notes notification type is on in Settings → Notifications.

Billing & Invoicing v1.0.0 · LaraClassifier / JobClass Add-on · by BeDigit

Was this article helpful?

Thank you for your feedback!

Still need help? Create a support ticket

Create a Ticket

Add-on Guides

2026-11-29