projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #17915 from demeritcowboy/useradd-messages
[civicrm-core.git]
/
CRM
/
Core
/
Payment
/
PayPalIPN.php
diff --git
a/CRM/Core/Payment/PayPalIPN.php
b/CRM/Core/Payment/PayPalIPN.php
index d675ab047b8c8e58acbf858036b5fed688680740..b6948ddbd47b2f10cbea78e55e9e9a6daeff99e6 100644
(file)
--- a/
CRM/Core/Payment/PayPalIPN.php
+++ b/
CRM/Core/Payment/PayPalIPN.php
@@
-229,8
+229,10
@@
class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN {
* @param bool $first
*
* @return void
* @param bool $first
*
* @return void
+ * @throws \CRM_Core_Exception
+ * @throws \CiviCRM_API3_Exception
*/
*/
- public function single(
&$input, &$ids, &
$objects, $recur = FALSE, $first = FALSE) {
+ public function single(
$input, $ids,
$objects, $recur = FALSE, $first = FALSE) {
$contribution = &$objects['contribution'];
// make sure the invoice is valid and matches what we have in the contribution record
$contribution = &$objects['contribution'];
// make sure the invoice is valid and matches what we have in the contribution record
@@
-257,7
+259,7
@@
class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN {
}
$status = $input['paymentStatus'];
}
$status = $input['paymentStatus'];
- if ($status ==
'Denied' || $status == 'Failed' || $status
== 'Voided') {
+ if ($status ==
= 'Denied' || $status === 'Failed' || $status =
== 'Voided') {
$this->failed($objects);
return;
}
$this->failed($objects);
return;
}
@@
-265,7
+267,7
@@
class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN {
Civi::log()->debug('Returning since contribution status is Pending');
return;
}
Civi::log()->debug('Returning since contribution status is Pending');
return;
}
- elseif ($status ==
'Refunded' || $status
== 'Reversed') {
+ elseif ($status ==
= 'Refunded' || $status =
== 'Reversed') {
$this->cancelled($objects);
return;
}
$this->cancelled($objects);
return;
}
@@
-369,7
+371,7
@@
class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN {
return;
}
}
return;
}
}
- $this->single($input, $ids, $objects
, FALSE, FALSE
);
+ $this->single($input, $ids, $objects);
}
/**
}
/**