drastik / com.drastikbydesign.stripe

CMS Independent Stripe payment processor for CiviCRM 4.x
Other
35 stars 48 forks source link

Add cancelSubscription method #251

Open jitendrapurohit opened 6 years ago

jitendrapurohit commented 6 years ago

User gets below warning on the cancel recur subscription page

Automatic cancellation is not supported for this payment processor. You or the contributor will need to manually cancel this recurring contribution using the payment processor website.

Stripe supports the cancellation of subcription. This PR adds this functionality to the extension.

Testing can be done using the below steps -

mattwire commented 6 years ago

ping @jmcclelland

jmcclelland commented 6 years ago

I think this is an important feature!

And, I think this is a duplicate of of #240, which has a long conversation in the pull request. I think the other PR handles possible errors when canceling an already canceled subscription and also it uses the more modern API to update the subscription id.

I'm commenting on the other PR since it seems a bit more active with one more thought about an upgrade script...