Commit 4cccfa380f3 for woocommerce

commit 4cccfa380f30b34fba0f79ac8c998bd20af10252
Author: Vlad Olaru <vlad.olaru@automattic.com>
Date:   Mon Aug 3 15:38:38 2026 +0300

    [Payments NOX] Add GoCardless to UK/GB (#67336)

    * Add GoCardless as a recommended payment partner for GB merchants

    * Add changelog entries for GoCardless GB payment suggestion

    * Add order assertion for GoCardless in GB payment suggestions

diff --git a/plugins/woocommerce/changelog/add-gocardless-uk-gb b/plugins/woocommerce/changelog/add-gocardless-uk-gb
new file mode 100644
index 00000000000..7774ff4f57f
--- /dev/null
+++ b/plugins/woocommerce/changelog/add-gocardless-uk-gb
@@ -0,0 +1,4 @@
+Significance: minor
+Type: add
+
+Add GoCardless as a recommended payment partner extension for GB (UK) merchants.
diff --git a/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php b/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php
index 6454243f07c..9d7c9abaf14 100644
--- a/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php
+++ b/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php
@@ -264,6 +264,7 @@ class PaymentsExtensionSuggestions {
 					),
 				),
 			),
+			self::GOCARDLESS,
 			self::PAYPAL_WALLET,
 			self::AMAZON_PAY,
 			self::AFFIRM          => array(
diff --git a/plugins/woocommerce/tests/php/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestionsTest.php b/plugins/woocommerce/tests/php/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestionsTest.php
index 460f6c3f462..284cbb28d82 100644
--- a/plugins/woocommerce/tests/php/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestionsTest.php
+++ b/plugins/woocommerce/tests/php/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestionsTest.php
@@ -128,7 +128,7 @@ class PaymentsExtensionSuggestionsTest extends WC_Unit_Test_Case {
 		$country_suggestions_count = array(
 			'CA' => 10,
 			'US' => 11,
-			'GB' => 14,
+			'GB' => 15,
 			'AT' => 13,
 			'BE' => 11,
 			'BG' => 7,
@@ -439,7 +439,7 @@ class PaymentsExtensionSuggestionsTest extends WC_Unit_Test_Case {
 		$country_suggestions_count = array(
 			'CA' => 10,
 			'US' => 11,
-			'GB' => 14,
+			'GB' => 15,
 			'AT' => 13,
 			'BE' => 11,
 			'BG' => 7,
@@ -693,6 +693,26 @@ class PaymentsExtensionSuggestionsTest extends WC_Unit_Test_Case {
 		return $data;
 	}

+	/**
+	 * Test that GoCardless is placed immediately after Klarna Checkout in the GB suggestions order.
+	 *
+	 * The order of entries in PaymentsExtensionSuggestions::$country_extensions determines the
+	 * suggestions' display priority, so this guards against accidental reordering.
+	 */
+	public function test_get_country_extensions_gb_gocardless_order() {
+		// Act.
+		$extensions = $this->sut->get_country_extensions( 'GB' );
+		$ids        = array_column( $extensions, 'id' );
+
+		// Assert.
+		$this->assertCount( 15, $ids );
+		$klarna_checkout_index = array_search( PaymentsExtensionSuggestions::KLARNA_CHECKOUT, $ids, true );
+		$gocardless_index      = array_search( PaymentsExtensionSuggestions::GOCARDLESS, $ids, true );
+		$this->assertNotFalse( $klarna_checkout_index, 'Klarna Checkout should be in the GB suggestions.' );
+		$this->assertNotFalse( $gocardless_index, 'GoCardless should be in the GB suggestions.' );
+		$this->assertSame( $klarna_checkout_index + 1, $gocardless_index, 'GoCardless should immediately follow Klarna Checkout in the GB suggestions.' );
+	}
+
 	/**
 	 * Test getting payment extension suggestions by country with per-country config that uses merges.
 	 */