Commit 5512e81dd6 for woocommerce
commit 5512e81dd6e82538faeae3d2839e47fb82a8d0fb
Author: Mayisha <33387139+Mayisha@users.noreply.github.com>
Date: Tue Dec 2 14:25:43 2025 +0600
PayPal Standard: Use home url for generating webhook url (#62141)
* use home url for generating webhook url
diff --git a/plugins/woocommerce/changelog/62141-fix-paypal-standard-site-url-for-webhooks b/plugins/woocommerce/changelog/62141-fix-paypal-standard-site-url-for-webhooks
new file mode 100644
index 0000000000..6d8dedae3b
--- /dev/null
+++ b/plugins/woocommerce/changelog/62141-fix-paypal-standard-site-url-for-webhooks
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Fix PayPal webhook endpoint URL to use home URL instead of site URL.
\ 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 9453bea803..ef8ecf109d 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
@@ -572,7 +572,7 @@ class WC_Gateway_Paypal_Request {
'order_id' => $order->get_id(),
'order_key' => $order->get_order_key(),
// Endpoint for the proxy to forward webhooks to.
- 'site_url' => get_site_url(),
+ 'site_url' => home_url(),
'site_id' => class_exists( 'Jetpack_Options' ) ? Jetpack_Options::get_option( 'id' ) : null,
)
);