From 1d2685936e83096c436b8f250502d711a243eebf Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 20 Feb 2015 11:04:42 -0500 Subject: [PATCH] Use stored credentials because they may not be present in params. --- trustcommerce.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trustcommerce.php b/trustcommerce.php index dae5d91..d36e42b 100644 --- a/trustcommerce.php +++ b/trustcommerce.php @@ -499,8 +499,8 @@ class org_fsf_payment_trustcommerce extends CRM_Core_Payment { } function changeSubscriptionAmount(&$message = '', $params = array()) { - $tc_params['custid'] = $this->_getParam('user_name'); - $tc_params['password'] = $this->_getParam('password'); + $tc_params['custid'] = $this->_paymentProcessor['user_name']; + $tc_params['password'] = $this->_paymentProcessor['password']; $tc_params['action'] = 'store'; $tc_params['billingid'] = CRM_Utils_Array::value('subscriptionId', $params); -- 2.25.1