Jump to content

Automatically cancel clients PayPal subscription


JulesR

Recommended Posts

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

  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

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

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

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 by easyhosting
Link to comment
Share on other sites

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 by JulesR
Link to comment
Share on other sites

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

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

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

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

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

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

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 by JulesR
Link to comment
Share on other sites

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

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • 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