WC_Gateway_Paypal_Request::get_paypal_order_details │ public │ WC 1.0

Устарела с версии 0.5.0. Больше не поддерживается и может быть удалена. Используйте Automattic\WooCommerce\Gateways\PayPal\Request::get_paypal_order_details(). This method will be removed in 11.0.0.

Get PayPal order details.

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

Хуков нет.

Возвращает

array.

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

$WC_Gateway_Paypal_Request = new WC_Gateway_Paypal_Request();
$WC_Gateway_Paypal_Request->get_paypal_order_details( $paypal_order_id );
$paypal_order_id(строка) (обязательный)
The ID of the PayPal order.

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

Устарела с 10.5.0 Use Automattic\WooCommerce\Gateways\PayPal\Request::get_paypal_order_details() instead. This method will be removed in 11.0.0.

Код WC_Gateway_Paypal_Request::get_paypal_order_details() WC 11.2.2

public function get_paypal_order_details( $paypal_order_id ) {
	wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Request::get_paypal_order_details()' );
	if ( ! $this->request ) {
		$this->request = new PayPalRequest( $this->gateway );
	}
	return $this->request->get_paypal_order_details( $paypal_order_id );
}