WordPress at Your Fingertips
function is not described

WC_Gateway_Paypal_IPN_Handler::__construct() public WC 1.0

Constructor.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Gateway_Paypal_IPN_Handler = new WC_Gateway_Paypal_IPN_Handler();
$WC_Gateway_Paypal_IPN_Handler->__construct( $sandbox, $receiver_email );
$sandbox(true|false)
Use sandbox or not.
Default: false
$receiver_email(string)
Email to receive IPN from.
Default: ''

Code of WC_Gateway_Paypal_IPN_Handler::__construct() WC 5.6.0

public function __construct( $sandbox = false, $receiver_email = '' ) {
	add_action( 'woocommerce_api_wc_gateway_paypal', array( $this, 'check_response' ) );
	add_action( 'valid-paypal-standard-ipn-request', array( $this, 'valid_response' ) );

	$this->receiver_email = $receiver_email;
	$this->sandbox        = $sandbox;
}