Skip to content
Snippets Groups Projects
Commit 71c97aba authored by Rich's avatar Rich
Browse files

orderAPI: add comment about providing processor if relevant

parent ce7692e2
No related branches found
No related tags found
1 merge request!726Formatting improvements and add code comments on Order API + fix broken URL
...@@ -366,8 +366,9 @@ try { ...@@ -366,8 +366,9 @@ try {
civicrm_api3('Payment', 'create', [ civicrm_api3('Payment', 'create', [
'contribution_id' => $order['id'], 'contribution_id' => $order['id'],
'total_amount' => $params['amount'], 'total_amount' => $params['amount'],
'payment_processor_id' => $params['payment_processor_id'],
'payment_instrument_id' => $params['payment_instrument_id'], 'payment_instrument_id' => $params['payment_instrument_id'],
// If there is a processor, provide it:
'payment_processor_id' => $params['payment_processor_id'],
]); ]);
} }
catch { catch {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment