nkthen Posted December 28, 2007 Share Posted December 28, 2007 I want to be able to auto-register the new hosting client with QuickPayPro (QPP) script. What happens is: When the user pays the subscription, it will go to the auto-setup of the account, at this script itself, I want to be able to pass a URL command to another URL which host the QPP script. The command that is to be sent will actually create the user account and the user ID is the same as the created WHMCS user ID. I realised that your code are all encrypted, so is there anyway for me to do this? 0 Quote Link to comment Share on other sites More sharing options...
nkthen Posted January 3, 2008 Author Share Posted January 3, 2008 Can anyone help? 0 Quote Link to comment Share on other sites More sharing options...
nkthen Posted February 1, 2008 Author Share Posted February 1, 2008 OK, do I assume that this CANNOT be done? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Developer WHMCS Andrew Posted February 1, 2008 WHMCS Developer Share Posted February 1, 2008 you could try adding some code in the actionhooks.php in the includes directory under the function for createclient 0 Quote Link to comment Share on other sites More sharing options...
nkthen Posted February 1, 2008 Author Share Posted February 1, 2008 OK, I also found this new feature (is it new in 3.51?). Can I know where I could learn more about actionhook and how do I use it? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Developer WHMCS Andrew Posted February 1, 2008 WHMCS Developer Share Posted February 1, 2008 Actionhooks are used so you can put your custom PHP code to run when certain actions occur. But if the PHP code is faulty, it WILL stop your WHMCS from functioning 0 Quote Link to comment Share on other sites More sharing options...
nkthen Posted February 1, 2008 Author Share Posted February 1, 2008 Yes, I know. But how do I USE that actionhook.php in my coding? What is the PHP code to interface actionhook.php? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Developer WHMCS Andrew Posted February 1, 2008 WHMCS Developer Share Posted February 1, 2008 It's called automatically. You do not need to do anything. Just put the code in there, and when the action happens (see the name of the functions in actionhooks) it will run the code 0 Quote Link to comment Share on other sites More sharing options...
nkthen Posted February 2, 2008 Author Share Posted February 2, 2008 OK, let's see if I understand: So I have a php file called widget.php and in the start of the file I'll copy and paste the entire code found in actionhook.php to widget.php. Or I'll just to a file include of actionhook.php into widget.php. Then I call the functions right? Is there anyway that I can invoke my widget.php file upon activation of account in WHMCS? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Developer WHMCS Andrew Posted February 2, 2008 WHMCS Developer Share Posted February 2, 2008 in the actionhooks file there is a function when when a client signs up, you can include the file using the php function include in that function. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.