Skip to content
Snippets Groups Projects
Commit 1ec71d1f authored by Rich's avatar Rich
Browse files

Correct call to Payment.create to use total_amount not amount

parent 47846c87
No related branches found
No related tags found
No related merge requests found
......@@ -359,8 +359,10 @@ try {
// Assuming the payment was taken, record it which will mark the Contribution
// as Completed and update related entities.
civicrm_api3('Payment', 'create',
['contribution_id' => $order['id'], 'amount' => $params['amount']]);
civicrm_api3('Payment', 'create', [
'contribution_id' => $order['id'],
'total_amount' => $params['amount'],
]);
}
catch {
// it failed
......
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