Skip to content

Commit

Permalink
Merge pull request #21 from pronamic/20-send-refunded-notices-for-cha…
Browse files Browse the repository at this point in the history
…rged-back-transaction

Send refund notices also for chargebacks.
  • Loading branch information
remcotolsma authored Jul 8, 2024
2 parents 4218e02 + 024dd78 commit 13167c2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,7 @@ public function maybe_record_memberpress_transaction_refund( Payment $payment )

$memberpress_transaction->store();

// Send 'Transaction Refunded' notice for refund (not for chargeback).
if ( $amount_refunded->get_value() > 0 ) {
MeprUtils::send_refunded_txn_notices( $memberpress_transaction );
}
MeprUtils::send_refunded_txn_notices( $memberpress_transaction );
}

/**
Expand Down Expand Up @@ -568,7 +565,7 @@ public function status_update( Payment $payment ) {

/**
* Payment fulfilled.
*
*
* @ignore Private action for now.
* @param Payment $payment Payment.
* @link https://github.com/pronamic/wp-pronamic-pay-mollie/issues/18#issuecomment-1373362874
Expand Down

0 comments on commit 13167c2

Please sign in to comment.