Skip to content

Commit

Permalink
Release merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimyhuang committed Apr 3, 2024
2 parents f2ee0db + fd9725b commit 2f03eff
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions CRM/Core/Payment/BaseIPN.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,15 @@ function completeTransaction(&$input, &$ids, &$objects, &$transaction, $recur =
$contribution->source = !empty($contribution->source) ? $contribution->source : $values['title'];

if ($values['is_email_receipt'] || $values['is_send_sms']) {
$contribution->receipt_date = self::$_now;
// only override receipt_date when necessary
if (empty($contribution->receipt_date)) {
$contribution->receipt_date = self::$_now;
}
else {
if (is_string($contribution->receipt_date) && strtotime($contribution->receipt_date) <= 10000) {
$contribution->receipt_date = self::$_now;
}
}
}

if ($membership) {
Expand Down Expand Up @@ -540,7 +548,15 @@ function completeTransaction(&$input, &$ids, &$objects, &$transaction, $recur =
$contribution->source = !empty($contribution->source) ? $contribution->source : ts('Online Event Registration') . ':' . $values['event']['title'];

if ($values['event']['is_email_confirm']) {
$contribution->receipt_date = self::$_now;
// only override receipt_date when necessary
if (empty($contribution->receipt_date)) {
$contribution->receipt_date = self::$_now;
}
else {
if (is_string($contribution->receipt_date) && strtotime($contribution->receipt_date) <= 10000) {
$contribution->receipt_date = self::$_now;
}
}
}

$participant->status_id = 1;
Expand Down

0 comments on commit 2f03eff

Please sign in to comment.