Skip to content

Commit

Permalink
Fix A.net to retrieve processor id from property bag
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Jun 18, 2020
1 parent 29a0f2e commit dd2bd60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Core/Payment/AuthorizeNet.php
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ public function accountLoginURL() {

/**
* @param string $message
* @param array $params
* @param \Civi\Payment\PropertyBag|array $params
*
* @return bool|object
* @throws \Civi\Payment\Exception\PaymentProcessorException
Expand All @@ -607,7 +607,7 @@ public function cancelSubscription(&$message = '', $params = []) {

$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 dd2bd60

Please sign in to comment.