enotice fix
authoreileenmcnaughton <eileen@fuzion.co.nz>
Mon, 29 Jun 2015 21:42:43 +0000 (21:42 +0000)
committereileenmcnaughton <eileen@fuzion.co.nz>
Mon, 29 Jun 2015 21:42:43 +0000 (21:42 +0000)
CRM/Core/Payment/AuthorizeNet.php

index 4e1eee9334240145eb71ef036ff23e2a3af3c35e..79a838133817ceedcf66775c7192d7b783acd8d8 100644 (file)
@@ -52,11 +52,10 @@ class CRM_Core_Payment_AuthorizeNet extends CRM_Core_Payment {
     $this->_paymentProcessor = $paymentProcessor;
     $this->_processorName = ts('Authorize.net');
 
-    $config = CRM_Core_Config::singleton();
     $this->_setParam('apiLogin', $paymentProcessor['user_name']);
     $this->_setParam('paymentKey', $paymentProcessor['password']);
     $this->_setParam('paymentType', 'AIM');
-    $this->_setParam('md5Hash', $paymentProcessor['signature']);
+    $this->_setParam('md5Hash', CRM_Utils_Array::value('signature', $paymentProcessor));
 
     $this->_setParam('emailCustomer', 'TRUE');
     $this->_setParam('timestamp', time());