From 9e03a6d020308a122e16814c3e51c1583a00c950 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Core/Payment/AuthorizeNet.php b/CRM/Core/Payment/AuthorizeNet.php index 3b51574df1..0921ea31a0 100644 --- a/CRM/Core/Payment/AuthorizeNet.php +++ b/CRM/Core/Payment/AuthorizeNet.php @@ -595,19 +595,19 @@ class CRM_Core_Payment_AuthorizeNet extends CRM_Core_Payment { /** * @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'); -- 2.25.1