Commit 70ac36bd authored by mattwire's avatar mattwire

Set cancel_date/cancel_reason for failed contribution. Don't update receive_date

parent cc536b41
......@@ -153,7 +153,8 @@ class CRM_Core_Payment_AuthNetIPN {
$params = [
'contribution_id' => $contribution['id'],
'order_reference' => $this->getParamFromResponse($response, 'invoice_id'),
'trxn_date' => $this->event_date,
'cancel_date' => $this->event_date,
'cancel_reason' => 'Transaction voided',
];
$this->updateContributionFailed($params);
break;
......@@ -187,7 +188,8 @@ class CRM_Core_Payment_AuthNetIPN {
$params = [
'contribution_id' => $contribution['id'],
'order_reference' => $this->getParamFromResponse($response, 'invoice_id'),
'trxn_date' => $this->event_date,
'cancel_date' => $this->event_date,
'cancel_reason' => 'Fraud declined',
];
$this->updateContributionFailed($params);
break;
......
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