Skip to content
Snippets Groups Projects
Commit 9e39b1a7 authored by mattwire's avatar mattwire
Browse files

Use getter for _paymentProcessor

parent 40e8d8a5
Branches
Tags
No related merge requests found
......@@ -394,7 +394,7 @@ trait CRM_Core_Payment_MJWIPNTrait {
}
}
$paymentParams['contribution_id'] = $contribution['id'];
$paymentParams['payment_processor_id'] = $this->_paymentProcessor->getID();
$paymentParams['payment_processor_id'] = $this->getPaymentProcessor()->getID();
$paymentParams['is_send_contribution_notification'] = $this->getSendEmailReceipt($paymentParams['contribution_id']);
$paymentParams['skipCleanMoney'] = TRUE;
civicrm_api3('Mjwpayment', 'create_payment', $paymentParams);
......@@ -461,7 +461,7 @@ trait CRM_Core_Payment_MJWIPNTrait {
}
$paymentParams['is_send_contribution_notification'] = $this->getSendEmailReceipt($paymentParams['contribution_id']);
$paymentParams['skipCleanMoney'] = TRUE;
$paymentParams['payment_processor_id'] = $this->_paymentProcessor->getID();
$paymentParams['payment_processor_id'] = $this->getPaymentProcessor()->getID();
civicrm_api3('Mjwpayment', 'create_payment', $paymentParams);
}
......@@ -567,7 +567,7 @@ trait CRM_Core_Payment_MJWIPNTrait {
* @throws \Civi\Payment\Exception\PaymentProcessorException
*/
protected function exception($message) {
$label = method_exists($this->_paymentProcessor, 'getPaymentProcessorLabel') ? $this->_paymentProcessor->getPaymentProcessorLabel() : __CLASS__;
$label = method_exists($this->getPaymentProcessor(), 'getPaymentProcessorLabel') ? $this->getPaymentProcessor()->getPaymentProcessorLabel() : __CLASS__;
$errorMessage = $label . ' Exception: Event: ' . $this->eventType . ' Error: ' . $message;
Civi::log()->error($errorMessage);
if ($this->exitOnException) {
......
......@@ -107,7 +107,7 @@ function mjwshared_symfony_civicrm_coreResourceList($event, $hook) {
// We want this library loaded early. Weights are negative earlier, positive later (opposite to symfony).
// CiviCRM "earliest" is -9999 we'll go with -2000 to load after CiviCRM core but before anything else.
\Civi::resources()->addScriptFile(
E::LONG_NAME,
E::LONG_NAME,
'js/crm.payment.js',
-2000,
$event->region
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment