From 157edc4fc77a075e8e0304f3feb74f9107244bb2 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Tue, 10 Mar 2020 21:27:35 +0000 Subject: [PATCH] Add recur ID to doCancelRecurring --- CRM/Contribute/Form/CancelSubscription.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Contribute/Form/CancelSubscription.php b/CRM/Contribute/Form/CancelSubscription.php index f3720baa23..f8b523e2e5 100644 --- a/CRM/Contribute/Form/CancelSubscription.php +++ b/CRM/Contribute/Form/CancelSubscription.php @@ -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']; } -- 2.25.1