From 024dd78b533b12c8183b8872cd4d3d2f2efb5cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=C3=BCel=20van=20der=20Steege?= Date: Fri, 5 Jul 2024 09:58:35 +0200 Subject: [PATCH] Send refund notices also for chargebacks. --- src/Extension.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Extension.php b/src/Extension.php index 7306a66..bda903e 100644 --- a/src/Extension.php +++ b/src/Extension.php @@ -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 ); } /** @@ -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