WC_Gateway_Paypal_Notices::manage_account_restriction_flag_for_notice
Устарела с версии 0.5.0. Больше не поддерживается и может быть удалена. Используйте Automattic\WooCommerce\Gateways\PayPal\Notices::manage_account_restriction_flag_for_notice().
Handle PayPal order response to manage account restriction notices.
Метод класса: WC_Gateway_Paypal_Notices{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$result = WC_Gateway_Paypal_Notices::manage_account_restriction_flag_for_notice( $http_code, $response_data, $order ): void;
- $http_code(int|строка) (обязательный)
- The HTTP status code from the PayPal API response.
- $response_data(массив) (обязательный)
- The decoded response data from the PayPal API.
- $order(WC_Order) (обязательный)
- The WooCommerce order object.
Список изменений
| С версии 10.4.0 | Введена. |
| Устарела с 10.5.0 | Use Automattic\WooCommerce\Gateways\PayPal\Notices::manage_account_restriction_flag_for_notice() instead. |
Код WC_Gateway_Paypal_Notices::manage_account_restriction_flag_for_notice() WC Gateway Paypal Notices::manage account restriction flag for notice WC 11.2.2
public static function manage_account_restriction_flag_for_notice( $http_code, array $response_data, WC_Order $order ): void {
wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Notices::manage_account_restriction_flag_for_notice()' );
PayPalNotices::manage_account_restriction_flag_for_notice( $http_code, $response_data, $order );
}