Skip to content
Docs
Get RestroPress

Action

rpress_verify_paypal_ipn

Updated
On this page

Fires when a PayPal IPN request is received and must be verified.

Runs on init when the request has the rpress-listener parameter set to ipn. If a PayPal identity token is configured, the request waits 8 seconds before the action fires, to avoid a race with PDT processing that could trigger the order status updates twice. RestroPress hooks rpress_process_paypal_ipn here.

Example#

function my_log_paypal_ipn() {
	error_log( 'PayPal IPN received' );
}
add_action( 'rpress_verify_paypal_ipn', 'my_log_paypal_ipn', 5, 0 );

Notes#

The built-in processing callback ends with exit, so callbacks that must run should use a priority lower than 10.

Source#

Fired from:

  • includes/gateways/paypal-standard.php (line 1496), in rpress_listen_for_paypal_ipn()

See also#

Was this page helpful?