projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #17448 from mattwire/api4membershiptype
[civicrm-core.git]
/
CRM
/
Core
/
Payment
/
FirstData.php
diff --git
a/CRM/Core/Payment/FirstData.php
b/CRM/Core/Payment/FirstData.php
index a8f5b4f7ff42d2239ce9865195ba2e250dbd93e7..5e520cf7e452608cfbdef142c41ae7660079a544 100644
(file)
--- a/
CRM/Core/Payment/FirstData.php
+++ b/
CRM/Core/Payment/FirstData.php
@@
-55,14
+55,6
@@
class CRM_Core_Payment_FirstData extends CRM_Core_Payment {
// (not used, implicit in the API, might need to convert?)
const CHARSET = 'UFT-8';
// (not used, implicit in the API, might need to convert?)
const CHARSET = 'UFT-8';
- /**
- * We only need one instance of this object. So we use the singleton
- * pattern and cache the instance in this variable
- *
- * @var object
- */
- static private $_singleton = NULL;
-
/**
* Constructor.
*
/**
* Constructor.
*
@@
-156,11
+148,11
@@
class CRM_Core_Payment_FirstData extends CRM_Core_Payment {
*/
public function doDirectPayment(&$params) {
if ($params['is_recur'] == TRUE) {
*/
public function doDirectPayment(&$params) {
if ($params['is_recur'] == TRUE) {
-
CRM_Core_Error::fatal
(ts('First Data - recurring payments not implemented'));
+
throw new CRM_Core_Exception
(ts('First Data - recurring payments not implemented'));
}
if (!defined('CURLOPT_SSLCERT')) {
}
if (!defined('CURLOPT_SSLCERT')) {
-
CRM_Core_Error::fatal
(ts('%1 - Gateway requires curl with SSL support', [1 => $paymentProcessor]));
+
throw new CRM_Core_Exception
(ts('%1 - Gateway requires curl with SSL support', [1 => $paymentProcessor]));
}
/**********************************************************
}
/**********************************************************