Skip to content

Instantly share code, notes, and snippets.

View WevrLabs's full-sized avatar
🤩

WevrLabs

🤩
View GitHub Profile
@WevrLabs
WevrLabs / paddle.php
Created May 26, 2021 17:18 — forked from whitej031788/paddle.php
An example payment gateway module to integrate WHMCS with Paddle
<?php
/**
* WHMCS Sample Paddle Payment Gateway Module
* You will need to add this file to the modules/gateways/ folder of your WHMCS installation
* It will send the seller to the Paddle checkout for the amount they have ordered
*
* WHMCS only provide invoice amounts, so in Paddle you just need to setup a single product or
* subscription plan and provide that in the config.
*
* Payment Gateway modules allow you to integrate payment solutions with the
@WevrLabs
WevrLabs / 2011-08-18_whmscripts_disabling_invoice_emails.md
Created May 26, 2021 17:17 — forked from RWJMurphy/2011-08-18_whmscripts_disabling_invoice_emails.md
WHMScripts: Disabling invoice creation emails in WHMCS on a per-client basis

If you’re using WHMCS to manage your cPanel shared servers, this is probably a request that you’ve received a few times. You have clients that are set up to pay invoices automatically from their credit cards, and they’d rather not receive the “Invoice Created” or “Invoice Payment Reminder” emails every month.

Normally WHMCS only allows you to disable these emails globally but, by making use of the EmailPreSend action hook, we can set up a list of clients not to receive these.

To get started just download the following script, change the file extension to .php, edit it to set up the $client_ids and place it in your WHMCS /includes/hooks/ directory

Please note, this script doesn’t disable only the automatically sent invoice notification emails, but also blocks manual sending of these for the selected clients.

(originally posted at http://whmscripts.net/whmcs/2011/disabling-invoice-creation-emails-in-whmcs-on-a-per-client-basis/)