}
if ((!$this->_crid && !$this->_coid && !$this->_mid) || (!$this->_subscriptionDetails)) {
- CRM_Core_Error::fatal('Required information missing.');
+ throw new CRM_Core_Exception('Required information missing.');
}
if (!$this->_paymentProcessor['object']->supports('updateSubscriptionBillingInfo')) {
- CRM_Core_Error::fatal(ts("%1 processor doesn't support updating subscription billing details.",
- array(1 => $this->_paymentProcessor['object']->_processorName)
+ throw new CRM_Core_Exception(ts("%1 processor doesn't support updating subscription billing details.",
+ [1 => $this->_paymentProcessor['title']]
));
}
$this->assign('paymentProcessor', $this->_paymentProcessor);
/**
* Processor type label.
*
- * (Deprecated parameter but used in some messages).
+ * (Deprecated unused parameter).
*
* @var string
* @deprecated
public function __construct($mode, &$paymentProcessor) {
$this->_mode = $mode;
$this->_paymentProcessor = $paymentProcessor;
- $this->_processorName = ts('Authorize.net');
$this->_setParam('apiLogin', $paymentProcessor['user_name']);
$this->_setParam('paymentKey', $paymentProcessor['password']);
public function __construct($mode, &$paymentProcessor) {
$this->_mode = $mode;
$this->_paymentProcessor = $paymentProcessor;
- $this->_processorName = ts('Dummy Processor');
}
/**
// live or test
$this->_mode = $mode;
$this->_paymentProcessor = $paymentProcessor;
- $this->_processorName = ts('Elavon');
}
/**
public function __construct($mode, &$paymentProcessor) {
$this->_mode = $mode;
$this->_paymentProcessor = $paymentProcessor;
- $this->_processorName = ts('PayJunction');
}
/**
public function __construct($mode, &$paymentProcessor) {
$this->_mode = $mode;
$this->_paymentProcessor = $paymentProcessor;
-
- if ($this->isPayPalType($this::PAYPAL_STANDARD)) {
- $this->_processorName = ts('PayPal Standard');
- }
- elseif ($this->isPayPalType($this::PAYPAL_EXPRESS)) {
- $this->_processorName = ts('PayPal Express');
- }
- elseif ($this->isPayPalType($this::PAYPAL_PRO)) {
- $this->_processorName = ts('PayPal Pro');
- }
- else {
- throw new PaymentProcessorException('CRM_Core_Payment_PayPalImpl: Payment processor type is not defined!');
- }
}
/**
// live or test
$this->_mode = $mode;
$this->_paymentProcessor = $paymentProcessor;
- $this->_processorName = ts('Payflow Pro');
}
/*
$this->_mode = $mode;
$this->_paymentProcessor = $paymentProcessor;
- $this->_processorName = ts('DPS Payment Express');
}
/**
public function __construct($mode, &$paymentProcessor) {
$this->_mode = $mode;
$this->_paymentProcessor = $paymentProcessor;
- $this->_processorName = ts('Realex');
$this->_setParam('merchant_ref', $paymentProcessor['user_name']);
$this->_setParam('secret', $paymentProcessor['password']);
// live or test
$this->_mode = $mode;
$this->_paymentProcessor = $paymentProcessor;
- $this->_processorName = ts('eWay');
}
/**