Category: Action Hook - Type: Free Last Updated: 18/07/2010 - Supported Versions: v4 or Later
I coded this Action Hook which will help in automatically setting the last payment gateway used by a client to pay their invoice as the new default payment method for that product (product: can be a Hosting service or Addon).
You may find this useful since clients who choose to pay using a new payment method will not be able to set the payment gateway as the new default on their own without the contribution located at http://forum.whmcs.com/showthread.php?t=28512
This Action Hook extends the above contribution further by automatically setting the last payment method used as the new default for their product when an invoice transaction takes place for their product. Not everyone may want this because if a client just wanted to use a new payment method only once, this script won't know. However, it offers logging capabilities (using the TO DO List) which enables Administrators to verify that the change was appropriate.
WHMCS is easily extendible through the many Developer Resources we make available, including modules, hooks, addons, API's and templates. So here you will find many third party developed extensions that can enhance and add to what WHMCS can do for you, as well as a number of Official Addons created by ourselves.
Disclaimer: The addons available here are provided by third party developers. WHMCS has not vetted the code in any of the addons listed here, and cannot be held responsible for any problems resulting from the use of them. We are also unable to provide support for any issues with third party code.