Skip to content

Commit

Permalink
Ensure contributionRecurID is available to payment processors that ne…
Browse files Browse the repository at this point in the history
…ed it in cancelSubscription

Discussion starts here https://chat.civicrm.org/civicrm/pl/9m1goccmtpdy58cb7jyx791t7e
eileenmcnaughton committed Oct 31, 2019
1 parent 5071f4e commit dfde1a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Contribute/Form/CancelSubscription.php
Original file line number Diff line number Diff line change
@@ -220,6 +220,7 @@ public function postProcess() {

if (CRM_Utils_Array::value('send_cancel_request', $params) == 1) {
$cancelParams = ['subscriptionId' => $this->_subscriptionDetails->subscription_id];
$this->_paymentProcessorObj->setContributionRecurID($this->contributionRecurID);
$cancelSubscription = $this->_paymentProcessorObj->cancelSubscription($message, $cancelParams);
}

0 comments on commit dfde1a1

Please sign in to comment.