Action
rpress_pre_refund_payment
On this page
Fires before stats are reduced for a refunded payment.
Runs in RPRESS_Payment::process_refund after rpress_should_process_refund allowed processing and before store earnings, customer value, purchase count and sale logs are updated. RestroPress uses it, at priority 999, to send the PayPal refund when requested.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment | RPRESS_Payment | The payment being refunded. |
Example#
function my_before_refund( $payment ) {
$payment->add_note( 'Refund processing started' );
}
add_action( 'rpress_pre_refund_payment', 'my_before_refund' );
Source#
Fired from:
includes/payments/class-rpress-payment.php(line 1654), inRPRESS_Payment::process_refund()
See also#
Was this page helpful?
