X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPayment%2FPayPalIPN.php;h=a506ab3f29714c9e737bfb09833608f1164b38f9;hb=f544b9a786aed47624d73299c32c1a504b52eac8;hp=c5484857c30e1d532451e1dd6f9c994d686990a1;hpb=6b5dfd14377463ae9a2cce380113be72cdbd00e8;p=civicrm-core.git diff --git a/CRM/Core/Payment/PayPalIPN.php b/CRM/Core/Payment/PayPalIPN.php index c5484857c3..a506ab3f29 100644 --- a/CRM/Core/Payment/PayPalIPN.php +++ b/CRM/Core/Payment/PayPalIPN.php @@ -1,34 +1,18 @@ debug('PayPalIPN: Could not find txn_type in input request'); echo "Failure: Invalid parameters
"; return; } - if ($input['txnType'] == 'subscr_payment' && - $input['paymentStatus'] != 'Completed' + if ($input['txnType'] === 'subscr_payment' && + $input['paymentStatus'] !== 'Completed' ) { Civi::log()->debug('PayPalIPN: Ignore all IPN payments that are not completed'); - echo "Failure: Invalid parameters
"; + echo 'Failure: Invalid parameters
'; return; }