WordPress at Your Fingertips
function is not described

WC_Gateway_Paypal_IPN_Handler::check_response() public WC 1.0

Check for PayPal IPN Response.

{} It's a method of the class: WC_Gateway_Paypal_IPN_Handler{}

Hooks from the method
Return

null. Nothing.

Usage

$WC_Gateway_Paypal_IPN_Handler = new WC_Gateway_Paypal_IPN_Handler();
$WC_Gateway_Paypal_IPN_Handler->check_response();

Code of WC_Gateway_Paypal_IPN_Handler::check_response() WC 5.7.0

public function check_response() {
	if ( ! empty( $_POST ) && $this->validate_ipn() ) { // WPCS: CSRF ok.
		$posted = wp_unslash( $_POST ); // WPCS: CSRF ok, input var ok.

		// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
		do_action( 'valid-paypal-standard-ipn-request', $posted );
		exit;
	}

	wp_die( 'PayPal IPN Request Failure', 'PayPal IPN', array( 'response' => 500 ) );
}