return TRUE;
} else if($this->_IsAgentBlacklisted()) {
return TRUE;
- }
+ }
return FALSE;
}
$cycle = 'y';
break;
}
-
+
/* Translate frequency interval from CiviCRM -> TC
* Payments are the same, HOWEVER a payment of 1 (forever) should be 0 in TC */
if($payments == 1) {
// It's all good
break;
case self::AUTH_DECLINED:
- // TODO FIXME be more or less specific?
+ // TODO FIXME be more or less specific?
// declinetype can be: decline, avs, cvv, call, expiredcard, carderror, authexpired, fraud, blacklist, velocity
// See TC documentation for more info
switch($reply['declinetype']) {
$tc_params['password'] = $this->_getParam('password');
$tc_params['action'] = 'unstore';
$tc_params['billingid'] = CRM_Utils_Array::value('trxn_id', $params);
-
+
$result = $this->_sendTCRequest($tc_params);
/* Test if call failed */
}
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);