Skip to content

Add your configured fees to WHMCS invoices when they are paid

License

Notifications You must be signed in to change notification settings

kensawyerr/whmcs_amount_out_hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

WHMCS Hook: Amount Out

Add your configured fees/expenses to WHMCS invoices after they are paid. This way you can have accurate records in your monthly transactions that will show your running cost and your profit.

Getting Started

Modify the variables $tlds and $products to set fees for your TLDs and fees for your products. The fees here refer to any expenses you will make in order to provide the service. E.g actual domain registration fees.

For Example: If you sell .com domains for $20 and .net domains for $25 on your website but the actual cost you registar the domains at the register is $15 (for .com) and $20 (for .net) then the $tlds array should look like so:

$tlds = array(
    ".com" => "15",
    ".net" => "20"
);

The same goes for the $products variable. This should be an array of your product IDs and whatever total cost you spend to provide it to your client.

Prerequisites

You need to have WHMCS installed

Installing

Step 1: Modify amount_out_hook.php with your configuration of the $tlds and $products variables.

Step 2: Place amount_out_hook.php in /includes/hooks/ directory of your WHMCS installation

About

Add your configured fees to WHMCS invoices when they are paid

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages