This is a WHMCS Module Addon for sign invoices with a certificate
Copy files on your root WHMCS system and active Addon on your settings.
- Copy all files into your whmcs installation directory
- Navigate to Setup -> Addon Modules in the WHMCS admin interface
- Activate the "Signed Invoices" module
- Setup your administrator role access to the module
- Fill out required fields and save the changes
- Add the following code to templates/YOURTEMPLATE/invoicepdf.tpl just ABOVE the last line :
// _ BEGIN SIGN INVOICES CODE BLOCK _
require_once ROOTDIR.'/modules/addons/signed_invoices/si_include.php';
if ($status_signed_invoices) {
$pdf->setSignature($cert,$privatekey,$keypass,$extra);
} else {
logActivity('Impossible to sign invoices');
}
// _ END SIGN INVOICES CODE BLOCK _