back-office contributions processed live, but show "Pending (Incomplete Transaction)" in civicrm
In version 2.1.2:
Credit-card contributions created via back-end "Submit Credit Card Contribution" are appearing correctly in transaction list at account.authorize.net, but in CiviCRM the status shows "Pending (Incomplete Transaction)".
However, this patch changes that behavior so that the contribution in CiviCRM shows correctly as "Completed":
diff --git a/CRM/Core/Payment/AuthorizeNetCommon.php b/CRM/Core/Payment/AuthorizeNetCommon.php
index d2c6a4b..79c97bf 100644
--- a/CRM/Core/Payment/AuthorizeNetCommon.php
+++ b/CRM/Core/Payment/AuthorizeNetCommon.php
@@ -254,6 +254,8 @@ abstract class CRM_Core_Payment_AuthorizeNetCommon extends CRM_Core_Payment {
$this->handleError($errorCode, $errorMessage, $params['error_url']);
}
+ $params['payment_status_id'] = $params['contribution_status_id'] ?? NULL;
+
return $this->endDoPayment($params);
}