Commit 3369ece287 for woocommerce

commit 3369ece287ff2f572cd4d3c704798d85e169550b
Author: Mayisha <33387139+Mayisha@users.noreply.github.com>
Date:   Mon Jan 5 22:34:07 2026 +0600

    PayPal Standard: Add missing deprecation notices in deprecated methods (#62645)

    * add deprecation notices

    * Add changefile(s) from automation for the following project(s): woocommerce

diff --git a/plugins/woocommerce/changelog/62645-add-paypal-standard-missing-deprecation-notices b/plugins/woocommerce/changelog/62645-add-paypal-standard-missing-deprecation-notices
new file mode 100644
index 0000000000..0bae97c9d9
--- /dev/null
+++ b/plugins/woocommerce/changelog/62645-add-paypal-standard-missing-deprecation-notices
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Added deprecation notices for deprecated methods in 'WC_Gateway_Paypal_Helper' and 'WC_Gateway_Paypal_Notices' classes.
\ No newline at end of file
diff --git a/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-helper.php b/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-helper.php
index 4ca777f86b..825ed3eaaa 100644
--- a/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-helper.php
+++ b/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-helper.php
@@ -31,6 +31,7 @@ class WC_Gateway_Paypal_Helper {
 	 * @return bool
 	 */
 	public static function is_paypal_gateway_available() {
+		wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Helper::is_paypal_gateway_available()' );
 		return PayPalHelper::is_paypal_gateway_available();
 	}

@@ -41,6 +42,7 @@ class WC_Gateway_Paypal_Helper {
 	 * @return bool
 	 */
 	public static function is_orders_v2_migration_eligible() {
+		wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Helper::is_orders_v2_migration_eligible()' );
 		return PayPalHelper::is_orders_v2_migration_eligible();
 	}

@@ -52,6 +54,7 @@ class WC_Gateway_Paypal_Helper {
 	 * @return WC_Order|null
 	 */
 	public static function get_wc_order_from_paypal_custom_id( $custom_id ) {
+		wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Helper::get_wc_order_from_paypal_custom_id()' );
 		if ( ! is_string( $custom_id ) || '' === $custom_id ) {
 			return null;
 		}
@@ -70,6 +73,7 @@ class WC_Gateway_Paypal_Helper {
 	 * @return mixed The data with PII redacted.
 	 */
 	public static function redact_data( $data ) {
+		wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Helper::redact_data()' );
 		return PayPalHelper::redact_data( $data );
 	}

@@ -81,6 +85,7 @@ class WC_Gateway_Paypal_Helper {
 	 * @return string The masked email address or original input if invalid.
 	 */
 	public static function mask_email( $email ) {
+		wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Helper::mask_email()' );
 		return PayPalHelper::mask_email( (string) $email );
 	}

@@ -93,6 +98,7 @@ class WC_Gateway_Paypal_Helper {
 	 * @return void
 	 */
 	public static function update_addresses_in_order( ?WC_Order $order, array $paypal_order_details ): void {
+		wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Helper::update_addresses_in_order()' );
 		PayPalHelper::update_addresses_in_order( $order, $paypal_order_details );
 	}
 }
diff --git a/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-notices.php b/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-notices.php
index 85b45ba146..196fbd0d43 100644
--- a/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-notices.php
+++ b/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-notices.php
@@ -47,6 +47,7 @@ class WC_Gateway_Paypal_Notices {
 	 * @return void
 	 */
 	public function add_paypal_notices() {
+		wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Notices::add_paypal_notices()' );
 		$this->notices->add_paypal_notices();
 	}

@@ -58,6 +59,7 @@ class WC_Gateway_Paypal_Notices {
 	 * @return void
 	 */
 	public function add_paypal_notices_on_payments_settings_page() {
+		wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Notices::add_paypal_notices_on_payments_settings_page()' );
 		$this->notices->add_paypal_notices_on_payments_settings_page();
 	}

@@ -80,6 +82,7 @@ class WC_Gateway_Paypal_Notices {
 	 * @return void
 	 */
 	public function add_paypal_migration_notice() {
+		wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Notices::add_paypal_migration_notice()' );
 		$this->notices->add_paypal_migration_notice();
 	}

@@ -102,6 +105,7 @@ class WC_Gateway_Paypal_Notices {
 	 * @return void
 	 */
 	public static function set_account_restriction_flag(): void {
+		wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Notices::set_account_restriction_flag()' );
 		PayPalNotices::set_account_restriction_flag();
 	}

@@ -113,6 +117,7 @@ class WC_Gateway_Paypal_Notices {
 	 * @return void
 	 */
 	public static function clear_account_restriction_flag(): void {
+		wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Notices::clear_account_restriction_flag()' );
 		PayPalNotices::clear_account_restriction_flag();
 	}

@@ -127,6 +132,7 @@ class WC_Gateway_Paypal_Notices {
 	 * @return void
 	 */
 	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 );
 	}
 }