From dd2bd607572e9e25aa0a9faf49933c90c8504e08 Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 19 Jun 2020 09:23:19 +1200 Subject: [PATCH] Fix A.net to retrieve processor id from property bag --- CRM/Core/Payment/AuthorizeNet.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Payment/AuthorizeNet.php b/CRM/Core/Payment/AuthorizeNet.php index 3b51574df153..2b43162163cc 100644 --- a/CRM/Core/Payment/AuthorizeNet.php +++ b/CRM/Core/Payment/AuthorizeNet.php @@ -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 @@ -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');