WC_Gateway_Paypal_Notices::manage_account_restriction_flag_for_notice
Deprecated since 0.5.0. It is no longer supported and may be removed in future releases. Use Automattic\WooCommerce\Gateways\PayPal\Notices::manage_account_restriction_flag_for_notice() instead.
Handle PayPal order response to manage account restriction notices.
Method of the class: WC_Gateway_Paypal_Notices{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WC_Gateway_Paypal_Notices::manage_account_restriction_flag_for_notice( $http_code, $response_data, $order ): void;
- $http_code(int|string) (required)
- The HTTP status code from the PayPal API response.
- $response_data(array) (required)
- The decoded response data from the PayPal API.
- $order(WC_Order) (required)
- The WooCommerce order object.
Changelog
| Since 10.4.0 | Introduced. |
| Deprecated since 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 code WC 10.7.0
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 );
}