WC_Gateway_Paypal_PDT_Handler::__construct()
Constructor.
Метод класса: WC_Gateway_Paypal_PDT_Handler{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Gateway_Paypal_PDT_Handler = new WC_Gateway_Paypal_PDT_Handler(); $WC_Gateway_Paypal_PDT_Handler->__construct( $sandbox, $identity_token );
- $sandbox(true|false)
- Whether to use sandbox mode or not.
По умолчанию: false - $identity_token(строка)
- Identity token for PDT support.
По умолчанию: ''
Код WC_Gateway_Paypal_PDT_Handler::__construct() WC Gateway Paypal PDT Handler:: construct WC 8.7.0
public function __construct( $sandbox = false, $identity_token = '' ) { add_action( 'woocommerce_thankyou_paypal', array( $this, 'check_response_for_order' ) ); $this->identity_token = $identity_token; $this->sandbox = $sandbox; }