JulesR Posted November 2, 2011 Author Share Posted November 2, 2011 so right, if you have a direct debit to pay your water rates, then 1 day you move to another country that has a differnent water company, co you inform yout water company that you are leaving, so they cancel your account. now whos responsibility is it to cancel the DD at your bank. it is not the water company. it is YOURS. Wrong. All companies I've ever used that had a direct debit system have canceled the direct debit upon myself leaving the service. the same in hosting a client cancels his hosting it is then the clients responsibily to approach the bank (paypal) to cancel recurring payments. Please stop hi-jacking my thread with this. This thread is for the discussion of the action hook, and not for you to voice your opinion on whether or not it is needed or wanted. Link to comment Share on other sites More sharing options...
easyhosting Posted November 2, 2011 Share Posted November 2, 2011 Wrong. All companies I've ever used that had a direct debit system have canceled the direct debit upon myself leaving the service. Please stop hi-jacking my thread with this. This thread is for the discussion of the action hook, and not for you to voice your opinion on whether or not it is needed or wanted. no hi-jacking any thread, using a senario and that fact is like a DD it is you the clients resposibilty to make sure and subscriptions/DD are cancelled at the bank/paypal. Link to comment Share on other sites More sharing options...
JulesR Posted November 2, 2011 Author Share Posted November 2, 2011 Please, stop hi-jacking the thread! Your opinion is not wanted here. Link to comment Share on other sites More sharing options...
easyhosting Posted November 2, 2011 Share Posted November 2, 2011 Please, stop hi-jacking the thread! Your opinion is not wanted here. well if you dont want anyones opinion then why post on a public forum Link to comment Share on other sites More sharing options...
JulesR Posted November 2, 2011 Author Share Posted November 2, 2011 This thread is for the discussion of the action hook, and not for you to voice your opinion on whether or not it is needed or wanted. Just because it's a public forum, doesn't mean you can take one thread and make it into something else entirely because you want to. If you want to discuss whether or not it's the hosts responsibility to cancel a clients PayPal subscription, make a new thread somewhere else. Link to comment Share on other sites More sharing options...
easyhosting Posted November 2, 2011 Share Posted November 2, 2011 (edited) yes it is, if you are going to post a hook for offer then others have the right to post on the thread to say if it is needed or wanted, so that other can see all views on the hooks viability. otherwise its just like saying heres a hook not bothered if its needed or wanted or if it works on not. to tell someone you dont want their opinion of the viability of the hook is just stupid on your part and will do you no favours on this forum Edited November 2, 2011 by easyhosting Link to comment Share on other sites More sharing options...
JulesR Posted November 2, 2011 Author Share Posted November 2, 2011 (edited) Are you so arrogant to assume that your opinion is going to influence others to decide whether or not to use this? I provide the hook "as is". If other people wish to use it, they can. If they don't wish to use it because they consider this something the client should take care of, then they can not use it. To discuss whether or not it should be used is a waste of time and completely nonsensical. Please, take the hint and STOP hijacking my thread. I have reported your posts to the moderators. EDIT after your edit: is just stupid on your part and will do you no favours on this forum What have you contributed to this forum, exactly? Edited November 2, 2011 by JulesR Link to comment Share on other sites More sharing options...
JulesR Posted November 2, 2011 Author Share Posted November 2, 2011 You do realize that basically what you're saying is this; Don't use this time saving action hook that will ensure your clients PayPal subscriptions are cancelled and that they won't accidentally send you money that they may not have and not realise that they are sending you, because its their responsibility to do it themselves! Your customer service must be amazing. Link to comment Share on other sites More sharing options...
Daniel Posted November 2, 2011 Share Posted November 2, 2011 Many thanks for the mod Jules, this is something I've wanted to see in the WHMCS core for a very long time. I've no idea what all the negativity is about here, I think some people argue for the sake of arguing. It's a free mod to stop an angry "Why did you take my money?!" ticket after a client has cancelled... You must be crazy if you think this is a bad idea. Link to comment Share on other sites More sharing options...
JulesR Posted November 2, 2011 Author Share Posted November 2, 2011 No problem, I'm glad people are getting some use from this I've updated the hook now with the following: 1. Reworked and cleaned the code to split into functions for clarity and easier maintenance if needed. It's now easier to add more hooks if required. 2. Added an additional hook for product upgrades/downgrades. If a customer upgrades or downgrades a product, by default their subscription is not modified. This can cause them to either pay too much (if downgraded) or too little (if upgraded). This should address that and let them create a new subscription if required. If you do not want to cancel a subscription on upgrade or downgrade, simply comment out the following line: add_hook("AfterProductUpgrade", 1, "cancelSubscriptionUpgrade"); 3. Added fields for PayPal API at the top of the script, for easier setup and installation. Simply add your API details to the following: $paypalapiusername = ""; // Your PayPal API Username $paypalapipassword = ""; // Your PayPal API Password $paypalapisignature = ""; // Your PayPal API Signature Download link: http://thiswebhost.com/cancelsubscription.zip Link to comment Share on other sites More sharing options...
jainritesh Posted November 10, 2011 Share Posted November 10, 2011 Hi! Jules, Thanks Jules for the plugin, Can you please guide me on following queries 1) how to install this addon hook? 2) what I've understood by reading this forum, On cancellation of account billing, this hook will run automatically and cancel active Paypal subscription linked to that billing, am i right? 3) Is this support cancellation of subscription which are still active but invoice is cancelled? Regards, Ritesh Jain Link to comment Share on other sites More sharing options...
JulesR Posted November 10, 2011 Author Share Posted November 10, 2011 Hi! Jules, Thanks Jules for the plugin, Can you please guide me on following queries 1) how to install this addon hook? 2) what I've understood by reading this forum, On cancellation of account billing, this hook will run automatically and cancel active Paypal subscription linked to that billing, am i right? 3) Is this support cancellation of subscription which are still active but invoice is cancelled? Regards, Ritesh Jain 1. Upload the .php file to your includes/hooks/ folder within WHMCS. Edit the .php file and enter your PayPal API details at the top of the file. 2. That's correct. If a PayPal subscription ID is found for the product, this will attempt to cancel it automatically. 3. No, I'm afraid not. Though this is something you could easily add yourself if needed. Link to comment Share on other sites More sharing options...
bigsean Posted November 17, 2011 Share Posted November 17, 2011 Hi JulesR, Great job, with over 10,000+ clients this makes life easier. The negativity is laughable at this point. For someone to be so objective for a free product/script that you're sharing is ridiculous. Thanks again and hopefully this will work once the new version of WHMCS is released. Cheers! Link to comment Share on other sites More sharing options...
Dedigeeks-Sean Posted November 21, 2011 Share Posted November 21, 2011 Just so I get this right, if a customer has a hosting package with us and decides to cancel that but keeps the domain name hosted with us and continually pays that, will your hook still cancel the whole subscription? Link to comment Share on other sites More sharing options...
JulesR Posted November 21, 2011 Author Share Posted November 21, 2011 (edited) Yes, and for good reason. The subscription would be for the hosting *and* domain name, so to not cancel it would mean they would be paying you for hosting and the renewal every time - far more than expected. EDIT: Just to add, the PayPal API does not allow for subscription modification, only creation or cancellation. Edited November 21, 2011 by JulesR Link to comment Share on other sites More sharing options...
Dedigeeks-Sean Posted November 21, 2011 Share Posted November 21, 2011 Ah, very good point you have there Jules Alright, I have installed this hook now - very good if you ask me because we have had I think 3 cases now where customers didn't cancel their subscriptions which we had to manually refund. So top work! Link to comment Share on other sites More sharing options...
Dedigeeks-Sean Posted November 21, 2011 Share Posted November 21, 2011 Jules, sorry to bug you again! This cancels the subscription on the customers "PayPal" account as an "On-Behalf" cancellation, is that correct? Link to comment Share on other sites More sharing options...
JulesR Posted November 21, 2011 Author Share Posted November 21, 2011 No problem, more than happy to answer questions Yep, it basically cancels the subscription your side with the note "Automated cancellation." Link to comment Share on other sites More sharing options...
tynman Posted November 22, 2011 Share Posted November 22, 2011 I think this is very useful and will help my company. Thank you Link to comment Share on other sites More sharing options...
zelatech Posted November 28, 2011 Share Posted November 28, 2011 thanks, this is really helpfull! Link to comment Share on other sites More sharing options...
nick@molten-servers Posted November 28, 2011 Share Posted November 28, 2011 Thanks Jules, Very helpful hook. Link to comment Share on other sites More sharing options...
jonessc Posted December 3, 2011 Share Posted December 3, 2011 Thanks - could this be turned into a add-on module? Link to comment Share on other sites More sharing options...
websavers Posted December 9, 2011 Share Posted December 9, 2011 Thanks - could this be turned into a add-on module? I would love to see this as an add-on module that automatically grabs your API info from the PayPal Module configuration in the WHMCS DB. No more configuration required! Simply upload and activate. Link to comment Share on other sites More sharing options...
websavers Posted December 9, 2011 Share Posted December 9, 2011 WARNING: I haven't tested this module. Use at your own risk! I've wrapped JulesR's hook into a module. As I suggested above, it also grabs the PayPal info from the payment gateway settings in the DB rather than requiring that you configure them. Thus, it *should* be a simple upload and activate. I highly suggest this be tested before proceeding with live use. JulesR: I hope you don't mind me doing this. Cheers, Jordan [Attachment Removed] Link to comment Share on other sites More sharing options...
JulesR Posted December 10, 2011 Author Share Posted December 10, 2011 (edited) Actually, I kind of do mind. Being asked first would have been at least courteous.... Edited December 10, 2011 by JulesR Link to comment Share on other sites More sharing options...
Recommended Posts