Skip to content

WHMCS hook to automatically add a percentage of credits based on payment processor.

License

Notifications You must be signed in to change notification settings

KuJoe/invoiceAddCredit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add Credit Based on Payment Processor Hook for WHMCS
Version 1.0 by KuJoe (JMD.cc)

//Requirements:
WHMCS 5.3.x (Tested with 5.3.12 and newer)

//Installation:

  1. Edit the invoiceAddCredit.php file and then upload it into your WHMCS's hooks directory (/includes/hooks/).

//Required:
A) Edit $percent to set the percentage of the total invoice to be added as a credit to the account (15% is default).
B) Edit $payproc to set the payment processor you want to issue the credit on their account (bitpay is default, if unsure what it's called check the tblinvoices table in the database for the exact name).
C) Edit $desc to set the description that appears in the credit to whatever you'd like.
D) Edit $adminuser to set the admin user that the credit is issued under (make sure it's valid in WHMCS since this is required).

//Optional:
A) Edit $minpay if you want to set a minimum invoice total required before a credit is added (this can by helpful to filter by billing cycle, default is 0.00).

About

WHMCS hook to automatically add a percentage of credits based on payment processor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages