Skip to content

Commit

Permalink
fix: ignore donation renewals
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe committed Dec 6, 2023
1 parent 741b09a commit 581c88e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions includes/incoming-events/class-donation-new.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ public function process_donation() {
return;
}

$is_renewal = $this->get_data()->is_renewal;
if ( $is_renewal ) {
Debugger::log( 'Ignoring donation subscription renewal with email: ' . $email );
return;
}

$node = $this->get_site();
$recurrence = $this->get_data()->recurrence;
$network_donor_data = \Newspack\Reader_Data::get_data( $existing_user->ID, 'network_donor' );
Expand Down

0 comments on commit 581c88e

Please sign in to comment.