WC_Gateway_Paypal_IPN_Handler::__construct( bool $sandbox = false, string $receiver_email = '' )

Constructor.


Description Description


Parameters Parameters

$sandbox

(Optional) Use sandbox or not.

Default value: false

$receiver_email

(Optional) Email to receive IPN from.

Default value: ''


Top ↑

Source Source

File: includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php

	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;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.