Commit cd70c62b32 for woocommerce

commit cd70c62b322e9a494aa4857bd8904b521b840a99
Author: Mayisha <33387139+Mayisha@users.noreply.github.com>
Date:   Thu Feb 5 12:11:42 2026 +0600

    PayPal Standard: Return to checkout page on cancel payment (#63050)

    * return to checkout page on cancel

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

    * Update code comment

diff --git a/plugins/woocommerce/changelog/63050-fix-paypal-standard-cancel-url b/plugins/woocommerce/changelog/63050-fix-paypal-standard-cancel-url
new file mode 100644
index 0000000000..590b21b3b1
--- /dev/null
+++ b/plugins/woocommerce/changelog/63050-fix-paypal-standard-cancel-url
@@ -0,0 +1,4 @@
+Significance: patch
+Type: update
+
+Update the `cancel_url` of PayPal Standard to the checkout page URL.
\ No newline at end of file
diff --git a/plugins/woocommerce/src/Gateways/PayPal/Request.php b/plugins/woocommerce/src/Gateways/PayPal/Request.php
index d7d9ec2531..afa0512d0f 100644
--- a/plugins/woocommerce/src/Gateways/PayPal/Request.php
+++ b/plugins/woocommerce/src/Gateways/PayPal/Request.php
@@ -605,8 +605,8 @@ class Request {
 						'shipping_preference'   => $shipping_preference,
 						// Customer redirected here on approval.
 						'return_url'            => $this->normalize_url_for_paypal( add_query_arg( 'utm_nooverride', '1', $this->gateway->get_return_url( $order ) ) ),
-						// Customer redirected here on cancellation.
-						'cancel_url'            => $this->normalize_url_for_paypal( $order->get_cancel_order_url_raw() ),
+						// Customer redirected back to checkout if they cancel the PayPal flow.
+						'cancel_url'            => $this->normalize_url_for_paypal( wc_get_checkout_url() ),
 						// Convert WordPress locale format (e.g., 'en_US') to PayPal's expected format (e.g., 'en-US').
 						'locale'                => str_replace( '_', '-', $src_locale ),
 						'app_switch_preference' => array(