|

srfm_payment_refunded

Description

Fires when a payment is refunded (fully or partially).

Parameters

  • $refunded_payment (object) – The refunded payment record.
  • $new_refund_amount (float) – The amount refunded.
  • $is_full_refund (bool) – Whether this is a full refund.
  • $payment_context (array) – Normalized payment context.

Hook Usage

PHP
add_action( 'srfm_payment_refunded', 'my_callback', 10, 4 ); 
function my_callback( $refunded_payment, $new_refund_amount, $is_full_refund, $payment_context ) { 
// React to the refund. 
}

Hook Example

PHP
add_action( 'srfm_payment_refunded', 'my_callback', 10, 4 ); 
function my_callback( $refunded_payment, $new_refund_amount, $is_full_refund, $payment_context ) { 
// React to the refund. 
}
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top