WC_Gateway_Paypal_Webhook_Handler::process_webhook │ public │ WC 1.0

Устарела с версии 10.5.0 Deprecated in favor of Automattic\WooCommerce\Gateways\PayPal\WebhookHandler::process_webhook. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Process the webhook event.

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

Хуков нет.

Возвращает

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

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

$WC_Gateway_Paypal_Webhook_Handler = new WC_Gateway_Paypal_Webhook_Handler();
$WC_Gateway_Paypal_Webhook_Handler->process_webhook( $request );
$request(WP_REST_Request) (обязательный)
The request object.

Список изменений

Устарела с 10.5.0 Use Automattic\WooCommerce\Gateways\PayPal\WebhookHandler::process_webhook() instead. This method will be removed in 11.0.0.
Устарела с 10.5.0 Deprecated in favor of Automattic\WooCommerce\Gateways\PayPal\WebhookHandler::process_webhook

Код WC_Gateway_Paypal_Webhook_Handler::process_webhook() WC 11.2.2

public function process_webhook( WP_REST_Request $request ) {
	wc_deprecated_function(
		__METHOD__,
		'10.5.0',
		PayPalWebhookHandler::class . '::process_webhook()'
	);

	$this->webhook_handler->process_webhook( $request );
}