Search the Community
Showing results for tags 'terminate'.
-
Hi All, We've had a couple of occasions where hosting accounts have been accidentally terminated using the terminate module command in WHMCS, and I want to stop this. I can see that it's possible to enable/disable *all* modules commands ("Perform Module Command Operations") per admin role, but I want to see if I can disable *only* the terminate command. WHMCS documentation doesn't appear to be coughing up the answer. Thanks for your help, Ross
-
Can you make a hook for a specific service terminated day? Or any module available for it? For example, I am selling business email and hosting both. But for business email, termination day needs 3 days but hosting need 1month/30 days. But for whmcs default system, only 1 day I can select.
-
Hello Guys, I would like to know about the terminated services in the profile, one the client has requested to remove those terminated services from the profile to show only active services from his clientarea, but the for the records we can't remove those services which was used in the past. Hence, Is it possible to hide or invisible those services from the profile? Kind regards, - Mitesh Ganatra
- 1 reply
-
- terminate
- hide service
-
(and 1 more)
Tagged with:
-
Hello, I've come across an issue that whenever I click terminate on a cPanel based product, it just continues to spin with "working..." and never completes. Can anyone suggest what's wrong here? Thanks
-
Hi, I thought I would share that I managed to do this, and should help out others. The topic that did it for me. http://thereforei.am/2012/07/03/cancelling-subscriptions-created-with-paypal-standard-via-the-express-checkout-api/ So in the module I created under the function terminate. I used the API to get the product details of the service. This gave me the subscription ID. I then run the PayPal function which terminated the subscription. //// SUSPEND PAYPAL PAYMENTS //// $command = "getclientsproducts"; $adminuser = "whmusername"; $values["clientid"] = $params['clientsdetails']['userid']; $values["serviceid"] = $params["serviceid"]; $values["responsetype"] = "xml"; $PRODUCTARRAY = localAPI($command,$values,$adminuser); $SUBSCRIPTIONID = $PRODUCTARRAY[products][product][0]['subscriptionid']; change_subscription_status( $SUBSCRIPTIONID, 'Cancel' ); //// SUSPEND PAYPAL PAYMENTS //// PayPal Function /** * Performs an Express Checkout NVP API operation as passed in $action. * * Although the PayPal Standard API provides no facility for cancelling a subscription, the PayPal * Express Checkout NVP API can be used. */ function change_subscription_status( $profile_id, $action ) { $api_request = 'USER=' . urlencode( 'api_username' ) . '&PWD=' . urlencode( 'api_password' ) . '&SIGNATURE=' . urlencode( 'api_signature' ) . '&VERSION=76.0' . '&METHOD=ManageRecurringPaymentsProfileStatus' . '&PROFILEID=' . urlencode( $profile_id ) . '&ACTION=' . urlencode( $action ) . '&NOTE=' . urlencode( 'Profile cancelled at store' ); $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, 'https://api-3t.sandbox.paypal.com/nvp' ); // For live transactions, change to 'https://api-3t.paypal.com/nvp' curl_setopt( $ch, CURLOPT_VERBOSE, 1 ); // Uncomment these to turn off server and peer verification // curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, FALSE ); // curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, FALSE ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt( $ch, CURLOPT_POST, 1 ); // Set the API parameters for this transaction curl_setopt( $ch, CURLOPT_POSTFIELDS, $api_request ); // Request response from PayPal $response = curl_exec( $ch ); // If no response was received from PayPal there is no point parsing the response if( ! $response ) die( 'Calling PayPal to change_subscription_status failed: ' . curl_error( $ch ) . '(' . curl_errno( $ch ) . ')' ); curl_close( $ch ); // An associative array is more usable than a parameter string parse_str( $response, $parsed_response ); return $parsed_response; } Hope this helps and saves plenty of time and $$$ Feel free to improve it. Like if subcription == ' ' Enjoy
