Skip to content

Commit

Permalink
Add recur ID to doCancelRecurring
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed Mar 10, 2020
1 parent 59545b0 commit 1ebde80
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
Expand Up @@ -206,6 +206,7 @@ public function postProcess() {
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'];
}
Expand Down

0 comments on commit 1ebde80

Please sign in to comment.