diff --git a/CRM/Financial/BAO/PaymentProcessor.php b/CRM/Financial/BAO/PaymentProcessor.php index b2508ec86534..b577a7fca64a 100644 --- a/CRM/Financial/BAO/PaymentProcessor.php +++ b/CRM/Financial/BAO/PaymentProcessor.php @@ -335,7 +335,7 @@ public static function getAllPaymentProcessors($mode = 'all', $reset = FALSE, $i } } $processors['values'][$processor['id']]['payment_processor_type'] = $processor['payment_processor_type'] = $processors['values'][$processor['id']]['api.payment_processor_type.getsingle']['name']; - $processors['values'][$processor['id']]['object'] = Civi\Payment\System::singleton()->getByProcessor($processor); + $processors['values'][$processor['id']]['object'] = Civi\Payment\System::singleton()->getByProcessor($processors['values'][$processor['id']]); } // Add the pay-later pseudo-processor.