Commit 840474b2 authored by mattwire's avatar mattwire
Browse files

Fix #12 - one-off payments not completed

parent ae63e169
......@@ -204,7 +204,7 @@ abstract class CRM_Core_Payment_AuthorizeNetCommon extends CRM_Core_Payment {
switch ($tresponse->getResponseCode()) {
case self::RESPONSECODE_APPROVED:
$params['contribution_status_id'] = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Completed');
$params['payment_status_id'] = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Completed');
break;
case self::RESPONSECODE_DECLINED:
......@@ -215,7 +215,7 @@ abstract class CRM_Core_Payment_AuthorizeNetCommon extends CRM_Core_Payment {
else {
$this->handleError(NULL, 'Transaction Failed', $params['error_url']);
}
$params['contribution_status_id'] = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Failed');
$params['payment_status_id'] = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Failed');
break;
case self::RESPONSECODE_REVIEW:
......
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