Commit 0639d1ee authored by mattwire's avatar mattwire
Browse files

Fix params for updateContributionFailed (id => contribution_id)

parent c766dabd
......@@ -326,9 +326,9 @@ trait CRM_Core_Payment_MJWIPNTrait {
* @throws \Civi\Payment\Exception\PaymentProcessorException
*/
private function updateContributionFailed($params) {
$this->checkRequiredParams('updateContributionFailed', ['id', 'trxn_date', 'order_reference'], $params);
$this->checkRequiredParams('updateContributionFailed', ['contribution_id', 'trxn_date', 'order_reference'], $params);
civicrm_api3('Contribution', 'create', [
'id' => $params['id'],
'id' => $params['contribution_id'],
'contribution_status_id' => 'Failed',
'receive_date' => $params['trxn_date'],
'trxn_id' => $params['order_reference'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment