Skip to content
Docs
Get RestroPress

Filter

rpress_process_paypal_refund_data

Updated
On this page

Filters the PayPal refund IPN data before the order is refunded.

Runs at the start of rpress_process_paypal_refund. The array holds the IPN fields from PayPal for a refunded payment. When the payment ID is empty after the filter, the function returns without making changes.

Available since RestroPress 1.0.

Parameters#

ParameterTypeDescription
$dataarrayIPN data from PayPal for the refund.
$payment_idintID of the order associated with the IPN request.

Return value#

array. The refund IPN data.

Example#

function my_paypal_refund_data( $data, $payment_id ) {
	return $data;
}
add_filter( 'rpress_process_paypal_refund_data', 'my_paypal_refund_data', 10, 2 );

Source#

Applied in:

  • includes/gateways/paypal-standard.php (line 1813), in rpress_process_paypal_refund()

See also#

Was this page helpful?