Commit 087b10e86d for woocommerce

commit 087b10e86d0322bdc6d539d1992a966795fea814
Author: Mayisha <33387139+Mayisha@users.noreply.github.com>
Date:   Fri Dec 5 23:10:41 2025 +0600

    PayPal Standard: Include WooCommerce version in the PayPal Standard request header (#62279)

    * include wc version in the paypal standard request header

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

    * fix phpstan

diff --git a/plugins/woocommerce/changelog/62279-update-include-wc-version-in-paypal-standard-request b/plugins/woocommerce/changelog/62279-update-include-wc-version-in-paypal-standard-request
new file mode 100644
index 0000000000..8a990fccb6
--- /dev/null
+++ b/plugins/woocommerce/changelog/62279-update-include-wc-version-in-paypal-standard-request
@@ -0,0 +1,4 @@
+Significance: patch
+Type: update
+
+Include WooCommerce version in the PayPal Standard request header.
\ No newline at end of file
diff --git a/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php b/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php
index 25c439935c..e64faec933 100644
--- a/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php
+++ b/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php
@@ -1017,7 +1017,10 @@ class WC_Gateway_Paypal_Request {
 			sprintf( '/sites/%d/%s/%s', $site_id, self::WPCOM_PROXY_REST_BASE, $endpoint ),
 			self::WPCOM_PROXY_ENDPOINT_API_VERSION,
 			array(
-				'headers' => array( 'Content-Type' => 'application/json' ),
+				'headers' => array(
+					'Content-Type' => 'application/json',
+					'User-Agent'   => 'TransactGateway/woocommerce/' . WC()->version,
+				),
 				'method'  => $method,
 				'timeout' => WC_Gateway_Paypal_Constants::WPCOM_PROXY_REQUEST_TIMEOUT,
 			),