Invoices

Membership Pro can generate a PDF invoice for each paid subscription, renewal and upgrade. It emails the invoice to the subscriber, to the administrators, or both. Subscribers and administrators can also download it later.

How It Works

  • An invoice number is assigned to a subscription only if the amount to pay (the final amount after discount and tax) is greater than 0. Free subscriptions get no invoice.
  • By default, the PDF is created on demand and deleted after it is sent or downloaded. Invoice numbers are stored in the database, so Membership Pro can regenerate the same PDF at any time.
  • Administrators can download an invoice from the invoice number link in Membership Pro -> Subscriptions, or from a subscriber's subscription history.
  • Subscribers can download their invoices from the Subscriptions History page. See Subscriptions History.
  • If you set Delete Invoice After Sending to No, the PDF files stay in the media/com_osmembership/invoices folder of your site.

Enable Invoices

  1. Go to Membership Pro -> Configuration and open the Invoice Settings tab.
  2. Set Activate Invoice Feature to Yes.
  3. Review the other settings below, edit the Invoice Format, then save.

See also Configuration for the other configuration tabs.

Invoice Settings

Invoice Settings

  • Activate Invoice Feature: turns invoice generation on or off.
  • Generate Invoice For Paid Subscription Only: if Yes, no invoice is created until the subscription is paid. Subscriptions paid by an offline method get their invoice when you approve them.
  • Send invoice when offline subscription is approved: if Yes, the invoice is emailed to the subscriber when you approve an offline-payment subscription. Default Yes.
  • Send Invoice To Subscribers: if Yes, the PDF invoice is attached to the subscription emails sent to the subscriber.
  • Send Copy Of Invoice To Administrators: if Yes, a copy of the PDF invoice is attached to the notification email sent to administrators when someone signs up, renews or upgrades.
  • Delete Invoice After Sending: if Yes, the PDF file is deleted from the server after it is sent or downloaded. Default Yes. Set it to No only if you need to keep the PDF files on the server.
  • Invoice Start Number: the number of the first invoice. If you enter 100, the first invoice is number 100, the next is 101, and so on. Default 1.
  • Reset Invoice Number Every Year: if Yes, numbering restarts at the Invoice Start Number each year. Use the [YEAR] tag in the prefix so numbers stay unique.
  • Invoice Prefix: text added before the invoice number. Default IV. You can use these tags in the prefix: [YEAR], [YEAR_LAST_2_DIGITS], [MONTH] and [DATE].
  • Invoice Number Length: the number of digits in the invoice number, padded with leading zeros. Default 5. With prefix IV and length 5, invoice 12 is shown as IV00012.
  • Invoice Format: the HTML layout of the invoice. The tags you can use are listed under the editor and below.

The PDF Settings tab controls the PDF font and page margins used for invoices and member cards. Leave the font unchanged unless special characters in your language do not display correctly.

If a plan needs its own invoice design, edit the plan and enter a layout in the Invoice Format field of its Emails & Messages tab. A plan layout overrides the global Invoice Format.

On a multilingual site, translate the invoice layout in the Invoice Translation tab of the configuration.

Supported Tags

Membership Pro installs a default invoice layout. You will usually want to edit it. The editor lists every tag available on your site. The main tags are below.

Plan Information

Tag Description
[PLAN_TITLE] Plan title.
[PLAN_SHORT_DESCRIPTION] Plan short description.
[PLAN_DESCRIPTION] Plan description.
[PLAN_ID] Plan ID.
[PLAN_ALIAS] Plan alias.
[PLAN_PRICE] Plan price.
[PLAN_DURATION] Plan duration.
[CATEGORY] Plan category.

Subscriber Information

Tag Description
[FIRST_NAME], [LAST_NAME] Subscriber's first and last name.
[NAME] First name and last name combined.
[EMAIL] Subscriber's email.
[ORGANIZATION], [ADDRESS], [ADDRESS2], [CITY], [STATE], [ZIP], [COUNTRY], [PHONE], [FAX], [COMMENT] Values of the matching profile fields.
Custom fields Use the field name in uppercase. For a custom field named registration_type, the tag is [REGISTRATION_TYPE].
[USER_ID] Joomla user ID.
[MEMBERSHIP_ID] Membership ID of the subscription.
[PROFILE_ID] ID of the subscriber's profile.
[FROM_DATE] Start date of the subscription.
[TO_DATE] End date of the subscription. [END_DATE] has the same value.
[CREATED_DATE] Date the subscription was created.

Payment Information

Tag Description
[SETUP_FEE] Setup fee.
[ITEM_AMOUNT] Plan amount before discount, tax and setup fee. [ITEM_SUB_TOTAL] has the same value.
[DISCOUNT_AMOUNT] Discount amount.
[SUB_TOTAL] [ITEM_AMOUNT] + [SETUP_FEE] - [DISCOUNT_AMOUNT].
[TAX_RATE] Tax rate, with a % sign.
[TAX_AMOUNT] Tax amount.
[PAYMENT_PROCESSING_FEE] Payment processing fee.
[TOTAL_AMOUNT] The final amount the subscriber pays.
[PAYMENT_METHOD] Title of the payment method.
[TRANSACTION_ID] Transaction ID from the payment gateway.

Invoice Information

Tag Description
[INVOICE_NUMBER] The formatted invoice number, including prefix.
[INVOICE_DATE] Date the subscription was created.
[INVOICE_STATUS] Pending, Paid, or a cancelled status, depending on the subscription status.
[ITEM_NAME] Description of the payment, for example the payment for a renewal or upgrade.
[ITEM_QUANTITY] Always 1.
[PAYMENT_LINK] Link to pay for an unpaid subscription.