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 #23262 from eileenmcnaughton/limit
[civicrm-core.git]
/
CRM
/
Core
/
Payment
/
PayPalProIPN.php
diff --git
a/CRM/Core/Payment/PayPalProIPN.php
b/CRM/Core/Payment/PayPalProIPN.php
index f8afbb1cd594e19c3f7463e1423fe21e1b465f12..5ff6e0d31749d9c1c039a93a8195b6e8d81ca2a1 100644
(file)
--- a/
CRM/Core/Payment/PayPalProIPN.php
+++ b/
CRM/Core/Payment/PayPalProIPN.php
@@
-288,10
+288,7
@@
class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN {
break;
case 'recurring_payment':
break;
case 'recurring_payment':
- if ($first) {
- $recur->start_date = $now;
- }
- else {
+ if (!$first) {
if ($input['paymentStatus'] !== 'Completed') {
throw new CRM_Core_Exception("Ignore all IPN payments that are not completed");
}
if ($input['paymentStatus'] !== 'Completed') {
throw new CRM_Core_Exception("Ignore all IPN payments that are not completed");
}
@@
-319,11
+316,6
@@
class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN {
$subscriptionPaymentStatus = CRM_Core_Payment::RECURRING_PAYMENT_END;
}
$subscriptionPaymentStatus = CRM_Core_Payment::RECURRING_PAYMENT_END;
}
- // make sure the contribution status is not done
- // since order of ipn's is unknown
- if ($recur->contribution_status_id != $contributionStatuses['Completed']) {
- $recur->contribution_status_id = $contributionStatuses['In Progress'];
- }
break;
}
break;
}