WC_Gateway_Paypal_IPN_Handler::__construct()publicWC 1.0

Constructor.

Method of the class: WC_Gateway_Paypal_IPN_Handler{}

No Hooks.

Return

null. Nothing (null).

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: ''

WC_Gateway_Paypal_IPN_Handler::__construct() code WC 8.7.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;
}