$recur->save();
if ($this->getFirstOrLastInSeriesStatus()) {
- $autoRenewMembership = FALSE;
- if ($recur->id &&
- isset($ids['membership']) && $ids['membership']
- ) {
- $autoRenewMembership = TRUE;
- }
-
//send recurring Notification email for user
CRM_Contribute_BAO_ContributionPage::recurringNotify($this->getFirstOrLastInSeriesStatus(),
$ids['contact'],
$ids['contributionPage'],
$recur,
- $autoRenewMembership
+ !empty($ids['membership'])
);
}
- if ($txnType != 'subscr_payment') {
+ if ($txnType !== 'subscr_payment') {
return;
}
return;
}
- if ($input['paymentStatus'] != 'Completed') {
+ if ($input['paymentStatus'] !== 'Completed') {
throw new CRM_Core_Exception("Ignore all IPN payments that are not completed");
}