Skip to content

Commit

Permalink
Merge pull request #17654 from eileenmcnaughton/cancel
Browse files Browse the repository at this point in the history
Fix A.net to retrieve processor id from property bag
  • Loading branch information
seamuslee001 authored Jun 20, 2020
2 parents 07ef3e7 + 9e03a6d commit 98b5e45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CRM/Core/Payment/AuthorizeNet.php
Original file line number Diff line number Diff line change
Expand Up @@ -595,19 +595,19 @@ public function accountLoginURL() {

/**
* @param string $message
* @param array $params
* @param \Civi\Payment\PropertyBag $params
*
* @return bool|object
* @throws \Civi\Payment\Exception\PaymentProcessorException
*/
public function cancelSubscription(&$message = '', $params = []) {
public function cancelSubscription(&$message = '', $params) {
$template = CRM_Core_Smarty::singleton();

$template->assign('subscriptionType', 'cancel');

$template->assign('apiLogin', $this->_getParam('apiLogin'));
$template->assign('paymentKey', $this->_getParam('paymentKey'));
$template->assign('subscriptionId', $params['subscriptionId']);
$template->assign('subscriptionId', $params->getRecurProcessorID());

$arbXML = $template->fetch('CRM/Contribute/Form/Contribution/AuthorizeNetARB.tpl');

Expand Down

0 comments on commit 98b5e45

Please sign in to comment.