Notice: Still Work in Progress. Invoices are not being generated.
The Moodle Invoice PDF Generator is a comprehensive plugin designed to automate the process of generating, sending, and managing invoices within the Moodle learning management system. This plugin seamlessly integrates with Moodle's payment system to create professional, customizable invoices for all financial transactions.
- Automatic PDF invoice generation upon successful payment
- Customizable invoice templates with support for multiple languages
- Secure storage and management of all generated invoices
- User-friendly interface for students to access their invoice history
- Administrative dashboard for managing all invoices across the platform
- Capability to resend invoices and manually generate invoices for specific transactions
- Integration with Moodle's core payment gateways
- Improved compatibility with Moodle 4.4 and PHP 8.1+
- Enhanced error handling and logging for better troubleshooting
- Download the plugin and extract it to the
local
directory in your Moodle installation. - Rename the extracted folder to
invoicepdf
. - Log in as an administrator and visit the notifications page to complete the installation.
- After installation, make sure to update your Moodle instance to properly integrate the new changes.
After installation, you can configure the plugin by navigating to Site Administration > Plugins > Local plugins > Invoice PDF Generator. Here you can set up:
- Company details (name, address, logo)
- Invoice numbering system
- Email templates
- Invoice design and content
- Payment gateway selection for invoice generation
- For students: Access your invoice history through your user profile or the custom navigation item.
- For administrators: Manage all invoices, resend invoices, and generate reports through the admin interface.
- Moodle 4.4 or higher
- PHP 8.1 or higher
This plugin has been updated to ensure full compatibility with Moodle 4.4 and PHP 8.1+. It leverages the latest Moodle APIs and follows modern PHP practices to provide optimal performance and security.
To use the plugin API, you can use the following example:
$invoice_id = \local_invoicepdf\api::generate_invoice($user->id, 100.00, 'USD', 'Course enrollment');
We welcome contributions to the Moodle Invoice PDF Generator plugin. Please feel free to submit pull requests or create issues for bugs and feature requests.
This plugin is licensed under the GNU GPL v3 or later.
For support, please create an issue in the GitHub repository or contact the plugin maintainer.
- Updated to support Moodle 4.4
- Improved compatibility with PHP 8.1+
- Enhanced error handling and logging
- Updated JavaScript to use modern ES6+ syntax and Moodle's AMD module system
- Improved code structure and documentation
Thank you for using the Moodle Invoice PDF Generator plugin!