Switch to using ContributionRecur.cancel api from CancelSubscription form
authoreileen <emcnaughton@wikimedia.org>
Thu, 11 Apr 2019 22:09:43 +0000 (08:09 +1000)
committereileen <emcnaughton@wikimedia.org>
Thu, 11 Apr 2019 22:09:43 +0000 (08:09 +1000)
commitc7d9325ab221b6f3b6ee19e46ce1bb7f7f858e65
treedb6680563c44440d47e3230f9575d248c7c35f23
parent476cc4314ca4dc5b4996dc4712b04ee8beaa3022
Switch to using ContributionRecur.cancel api from CancelSubscription form

The function cancelRecurContribution is only called from the form ant from the api.

This makes it so the form uses the api, which we have started to add unit testing to. Follow
ing this we can use the api for transaction handling and move more of the form logic into
the api, making it available to others & allowing us to better move to a new form layer later
without as much logic in the forms
CRM/Contribute/Form/CancelSubscription.php