diff --git a/docs/financial/orderAPI.md b/docs/financial/orderAPI.md index d0a90255f4f9a44b9b4113d9af3d85636ea18574..7e08cba03d80f8ddee2ef00129cfcdf6bf6c7e74 100644 --- a/docs/financial/orderAPI.md +++ b/docs/financial/orderAPI.md @@ -366,8 +366,9 @@ try { civicrm_api3('Payment', 'create', [ 'contribution_id' => $order['id'], 'total_amount' => $params['amount'], - 'payment_processor_id' => $params['payment_processor_id'], 'payment_instrument_id' => $params['payment_instrument_id'], + // If there is a processor, provide it: + 'payment_processor_id' => $params['payment_processor_id'], ]); } catch {