X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPayment%2FPayPalImpl.php;h=79c2ecd9de9989c85452670cd816b98e64cd9d70;hb=ddaa955ed4b89d8d3280316a7c902357a6e03793;hp=092ef82ec028cf7ec7c34faf9de3c6f0a8ad3035;hpb=5d1ad58ef51df12840b493951fe59b360bbbd36f;p=civicrm-core.git diff --git a/CRM/Core/Payment/PayPalImpl.php b/CRM/Core/Payment/PayPalImpl.php index 092ef82ec0..79c2ecd9de 100644 --- a/CRM/Core/Payment/PayPalImpl.php +++ b/CRM/Core/Payment/PayPalImpl.php @@ -43,19 +43,6 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { 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!'); - } } /** @@ -703,7 +690,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { * @throws \CRM_Core_Exception * @throws \CiviCRM_API3_Exception */ - public static function handlePaymentNotification() { + public function handlePaymentNotification() { $params = array_merge($_GET, $_REQUEST); $q = explode('/', CRM_Utils_Array::value('q', $params, '')); $lastParam = array_pop($q);