Fix notice on payment processor object
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 14 Nov 2023 22:22:28 +0000 (11:22 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 14 Nov 2023 22:22:28 +0000 (11:22 +1300)
CRM/Contribute/Form/Contribution/Main.php

index 579b172c59f49e2c6d427defb94dd458bf1f199b..327cecf8d95ad49cbd1aea40b10cd838f5a1d203 100644 (file)
@@ -752,7 +752,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
 
     $form->assign('is_recur_interval', $this->getContributionPageValue('is_recur_interval'));
     $form->assign('is_recur_installments', $this->getContributionPageValue('is_recur_installments'));
-    $paymentObject = $this->_paymentProcessor['object'];
+    $paymentObject = $this->getPaymentProcessorObject();
     if ($paymentObject) {
       $form->assign('recurringHelpText', $paymentObject->getText('contributionPageRecurringHelp', [
         'is_recur_installments' => !empty($form->_values['is_recur_installments']),