WC_Gateway_Paypal_IPN_Handler::__construct()publicWC 1.0

Constructor.

Метод класса: WC_Gateway_Paypal_IPN_Handler{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$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.
По умолчанию: false
$receiver_email(строка)
Email to receive IPN from.
По умолчанию: ''

Код WC_Gateway_Paypal_IPN_Handler::__construct() 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;
}