Jump to content

serveria

Member
  • Posts

    12
  • Joined

  • Last visited

About serveria

serveria's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Sorry for necroposting just wanted to say thanks. Very easy yet elegant fix. Works like a charm.
  2. Hi, I wonder what's the correct way to call module params from a Create Account function below: function provisioningmodule_CreateAccount(array $params) { try { $result = shell_exec("wget -O - --quiet --http-user=xxxx --http-passwd=xxxxxx --no-check-certificate 'https://xxx.xxx.xxx.xxx:10000/virtual-server/remote.cgi?program=create-user&domain=xxxxxx.com&user=jimmy&pass=12345&quota=1024'"); } We need to grab user, pass and quota fields from an order form.
  3. Issue solved, just had to replace this: function provisioningmodule_CreateAccount(array $params) { with the actual module name: function yourmodulename_CreateAccount(array $params)
  4. Hi, Tried this so far: function provisioningmodule_CreateAccount(array $params) { try { $result = shell_exec("wget -O - --quiet --http-user=root --http-passwd=xxxxxx --no-check-certificate 'https://xx.xx.xx.xx:10000/virtual-server/remote.cgi?program=create-user --domain example.com --user jimmy --pass smeg --quota 1024'"); } but no go... WHMCS is giving me this error: Module Create Failed - Service ID: xxx - Error: Function Not Supported by Module Any suggestions? What are we doing wrong?
  5. Hi, We're trying to create a module which would provision email accounts on a Virtualmin server (don't ask why it was requested by a customer). What we have so far is a sample WHMCS provisioning module from github and Virtualmin API documentation. We know the command which needs to be executed on a Vmin server it would be similar to this one: https://yourserver:10000/virtual-server/remote.cgi?program=create-user But how can we call this command from WHMCS? It should be somewhere around this place here: function provisioningmodule_CreateAccount(array $params) { try { // Call the service's provisioning function, using the values provided // by WHMCS in `$params`. // // A sample `$params` array may be defined as: // // ``` // array( // 'domain' => 'The domain of the service to provision', // 'username' => 'The username to access the new service', // 'password' => 'The password to access the new service', // 'configoption1' => 'The amount of disk space to provision', // 'configoption2' => 'The new services secret key', // 'configoption3' => 'Whether or not to enable FTP', // ... // ) // ``` } catch (Exception $e) { // Record the error in WHMCS's module log. logModuleCall( 'provisioningmodule', __FUNCTION__, $params, $e->getMessage(), $e->getTraceAsString() ); Please assist, any help will be appreciated...
  6. Thanks guys, I thought so it's not going to be an easy task... Chris, the customers are paying invoices instantly, not adding funds to their accounts. Brian, that was exactly my idea: take the amountin and compare to the monthly server price to calculate the correct amount for any given month. I wonder if there's any example of a whmcs report using joins available?
  7. Hi, We need to create a custom monthly income report for our bookkeeping. I checked the standard reports and also the mysql database directly they both use an "amountin" table which seems to contain an entire sum paid by the customer (also prepaid quarterly/annual etc orders). Is there any way to grab just the amount the customer pays for the current month? So, say John Doe has a server subscription worth $99/month and in June he prepays for a year in advance so the "amountin" value is $1188. What we need is to get the amount he pays for June i.e. $99. Also will need to copy this amount to July, August etc till the end of his prepayment term. Is there any way to achieve this using reports? Thanks in advance, guys! BR, Paul
  8. We have an issue installing this Braintree WHMCS module. As soon as we try to upload the hooks/braintree.php file to our whmcs's includes/hooks folder all cart/checkout pages turn blank. Any ideas?
  9. Hi, We installed the plugin by WGS and the issue is solved now. It was written specially for APIv2 so works flawlessly. I highly recommend this plugin.
  10. Hey this plugin worked flawlessly for years but then suddenly customers started getting this error: An error has occurred, please contact Billing or choose a different payment method. (Error ID: 1) It started on February 15. How can we fix it?
  11. Hi, All of a sudden, we stopped receiving the transactions to our wallet. When I check the transaction on blockchain.info it says Transaction unrelated to your wallet. It started yesterday and we haven't received a single transaction so far. Gateway settings in whmcs are correct (wallet address etc). How can I check where the money went?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated