Error on Contribution API 'transact' action
At least with the Dummy payment processor, Contribution API, transact action calls are failing with:
ResponseText: Fatal error: Call to a member function doPayment() on null in ..../civicrm/api/v3/Contribution.php on line 435
line 434
paymentProcessor = CRM_Financial_BAO_PaymentProcessor::getPayment(
params['payment_processor'], $params['payment_processor_mode']);
returns null instead of an object
This is accompanied with a notice: Notice: Undefined offset: 1 in CRM_Financial_BAO_PaymentProcessor::getPayment() (line 221 of ...../civicrm/CRM/Financial/BAO/PaymentProcessor.php).
Testing against Version 5.4.0, not sure if this was around in previous 5.x versions, but worked in 4.7.30
Parameters being passed to transact call:
Array
(
[receive_date] => 20180806133730
[skipLineItem] => 1
[sequential] => 1
[financial_type_id] => 2
[total_amount] => 25.5
[contact_id] => 203
[payment_processor] => 1
[payment_processor_id] => 1
[credit_card_number] => 4111111111111111
[cvv2] => 123
[month] => 8
[year] => 2020
[invoice_id] => 33ef9bcca73cfa8ebb142da3e7b22433
[source] => CiviCRM Entity Price Set Field -- Event Registration
[billing_first_name] => Mark
[billing_last_name] => Hanna
[currencyID] => USD
[currency] => USD
[is_test] => 1
[version] => 3
[payment_processor_mode] => test
[amount] => 25.5
[net_amount] => 25.5
[invoiceID] => 33ef9bcca73cfa8ebb142da3e7b22433
)