Skip to content
Docs
Get RestroPress

Filter

rpress_process_paypal_ipn_data

Updated
On this page

Filters the PayPal IPN data before it is verified and processed.

Runs in rpress_process_paypal_ipn after the posted IPN fields have been decoded and keys containing an encoded ampersand have been repaired. The array holds the raw IPN fields such as txn_type, txn_id, payment_status and custom. It is later sent back to PayPal for verification unless verification is disabled.

Available since RestroPress 2.8.13.

Parameters#

ParameterTypeDescription
$encoded_data_arrayarrayIPN data posted by PayPal.

Return value#

array. The IPN data.

Example#

function my_process_paypal_ipn_data( $encoded_data_array ) {
	if ( empty( $encoded_data_array['txn_type'] ) ) {
		$encoded_data_array['txn_type'] = 'web_accept';
	}
	return $encoded_data_array;
}
add_filter( 'rpress_process_paypal_ipn_data', 'my_process_paypal_ipn_data', 10, 1 );

Source#

Applied in:

  • includes/gateways/paypal-standard.php (line 1556), in rpress_process_paypal_ipn()

See also#

Was this page helpful?