Use stored credentials because they may not be present in params.
[trustcommerce.git] / trustcommerce.php
index dae5d91db383b1c20b407d1328f9b97aa203f4e8..d36e42b22cc33fdae944a15eada67c7d2953df9a 100644 (file)
@@ -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);