Skip to content
Snippets Groups Projects
Commit 09cafd47 authored by eileen's avatar eileen
Browse files

financial#152 Remove unused parameters from BaseIPN->failed signature

parent 6ed4a274
Branches
Tags
No related merge requests found
......@@ -162,13 +162,11 @@ class CRM_Core_Payment_BaseIPN {
* Set contribution to failed.
*
* @param array $objects
* @param object $transaction
* @param array $input
*
* @return bool
* @throws \CiviCRM_API3_Exception
* @throws \CiviCRM_API3_Exception|\CRM_Core_Exception
*/
public function failed(&$objects, $transaction = NULL, $input = []) {
public function failed($objects) {
$contribution = &$objects['contribution'];
$memberships = [];
if (!empty($objects['membership'])) {
......@@ -206,9 +204,6 @@ class CRM_Core_Payment_BaseIPN {
$this->cancelParticipant($participant->id);
}
if ($transaction) {
$transaction->commit();
}
Civi::log()->debug("Setting contribution status to Failed");
return TRUE;
}
......
......@@ -441,8 +441,7 @@ class CRM_Core_Payment_BaseIPNTest extends CiviUnitTestCase {
'status_id' => 'Pending from incomplete transaction',
]);
$transaction = new CRM_Core_Transaction();
$this->IPN->failed($this->objects, $transaction);
$this->IPN->failed($this->objects);
$cancelledParticipantsCount = civicrm_api3('Participant', 'get', [
'sequential' => 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment