Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send refund notices also for chargebacks. #21

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading