Add recur ID to doCancelRecurring
authorMatthew Wire <mjw@mjwconsult.co.uk>
Tue, 10 Mar 2020 21:27:35 +0000 (21:27 +0000)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Wed, 11 Mar 2020 14:26:58 +0000 (14:26 +0000)
CRM/Contribute/Form/CancelSubscription.php

index f3720baa2309f35e5361e75588a980701fc371ee..f8b523e2e5d3c55be2abdcd391d10b0768eb4a8c 100644 (file)
@@ -206,6 +206,7 @@ class CRM_Contribute_Form_CancelSubscription extends CRM_Contribute_Form_Contrib
     if (CRM_Utils_Array::value('send_cancel_request', $params) == 1) {
       try {
         $propertyBag = new PropertyBag();
+        $propertyBag->setContributionRecurID($this->getSubscriptionDetails()->recur_id);
         $propertyBag->setRecurProcessorID($this->getSubscriptionDetails()->subscription_id);
         $message = $this->_paymentProcessorObj->doCancelRecurring($propertyBag)['message'];
       }