Commit 25f3a792be1 for woocommerce
commit 25f3a792be1ebeb26de7f70ef429a5985feeb38d
Author: Vlad Olaru <vlad.olaru@automattic.com>
Date: Wed Aug 5 12:40:02 2026 +0300
[Payments NOX] Fix payment partner recommendations in six countries (#67395)
* Align payment partner recommendations with the tracking sheet
The Payments settings recommendations are tracked in the Payment
Partnerships Onboarding Placement Tracking sheet, which is the source of
truth for which partners surface in each country, in what order, and in
which section. An audit of all 247 countries in the sheet against the
country configuration found six countries out of alignment.
Merchants in those countries saw recommendations that do not match what
Partnerships committed to, and merchants in Mayotte saw none at all
because the country had no entry.
This corrects the country data:
* Mayotte gains an entry with Visa as the preferred provider.
* Guyana gains PayPal, which the sheet lists as its primary APM.
* Malaysia and South Korea gain Airwallex in other payment providers.
* Andorra tags MONEI as preferred, so it fills the primary provider slot
instead of sitting in other payment providers next to Visa.
* Finland moves Paytrail ahead of GoCardless and Klarna Checkout.
Guyana also gains the PayPal Wallet entry even though its sheet column
has no starred fallback cell. Every other Tilopay market carries both
entries, so without it hiding the preferred PayPal suggestion would drop
PayPal from Guyana entirely rather than moving it to express checkouts.
Mastercard is missing from ten further country catalogs. That is tracked
separately and is deliberately not addressed here.
Refs WOOPRD-3644
* Add changelog entry for payment partner recommendation alignment
diff --git a/plugins/woocommerce/changelog/fix-WOOPRD-3644-align-nox-partner-recommendations b/plugins/woocommerce/changelog/fix-WOOPRD-3644-align-nox-partner-recommendations
new file mode 100644
index 00000000000..3c57357a566
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-WOOPRD-3644-align-nox-partner-recommendations
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Align the Payments settings partner recommendations with the partnership tracking sheet: add Mayotte, add PayPal to Guyana, add Airwallex to Malaysia and South Korea, make MONEI the preferred provider in Andorra, and place Paytrail before GoCardless in Finland.
diff --git a/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php b/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php
index 4a8442f3e86..5cf50bca7a4 100644
--- a/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php
+++ b/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php
@@ -321,7 +321,11 @@ class PaymentsExtensionSuggestions {
),
),
'AD' => array(
- self::MONEI,
+ self::MONEI => array(
+ '_append' => array(
+ 'tags' => array( self::TAG_PREFERRED ),
+ ),
+ ),
self::PAYPAL_WALLET => array(
'_append' => array(
'tags' => array( self::TAG_PREFERRED ),
@@ -592,6 +596,7 @@ class PaymentsExtensionSuggestions {
self::MOLLIE,
self::VISA,
self::VIVA_WALLET,
+ self::PAYTRAIL,
self::GOCARDLESS => array(
'_merge_on_type' => array(
'links' => array(
@@ -616,7 +621,6 @@ class PaymentsExtensionSuggestions {
),
),
),
- self::PAYTRAIL,
self::PAYPAL_WALLET,
self::KLARNA => array(
'_merge_on_type' => array(
@@ -1584,7 +1588,9 @@ class PaymentsExtensionSuggestions {
),
'GY' => array(
self::TILOPAY,
+ self::PAYPAL_FULL_STACK,
self::VISA,
+ self::PAYPAL_WALLET,
self::HELIOPAY,
),
'HT' => array(
@@ -2057,6 +2063,7 @@ class PaymentsExtensionSuggestions {
self::PAYPAL_FULL_STACK,
self::PAYONEER,
self::VISA,
+ self::AIRWALLEX,
self::PAYPAL_WALLET,
),
'MV' => array(
@@ -2246,6 +2253,7 @@ class PaymentsExtensionSuggestions {
),
),
self::PAYPAL_FULL_STACK,
+ self::AIRWALLEX,
self::PAYPAL_WALLET,
),
'TW' => array(
@@ -2588,6 +2596,13 @@ class PaymentsExtensionSuggestions {
self::PAYPAL_FULL_STACK,
self::PAYPAL_WALLET,
),
+ 'YT' => array(
+ self::VISA => array(
+ '_append' => array(
+ 'tags' => array( self::TAG_PREFERRED ),
+ ),
+ ),
+ ),
'MA' => array(
self::PAYONEER => array(
'_append' => 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 baf5ecfd6d0..37e02c3e2d8 100644
--- a/plugins/woocommerce/tests/php/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestionsTest.php
+++ b/plugins/woocommerce/tests/php/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestionsTest.php
@@ -191,7 +191,7 @@ class PaymentsExtensionSuggestionsTest extends WC_Unit_Test_Case {
'GD' => 5,
'GP' => 4,
'GT' => 5,
- 'GY' => 3,
+ 'GY' => 5,
'HN' => 5,
'JM' => 5,
'MQ' => 4,
@@ -219,14 +219,14 @@ class PaymentsExtensionSuggestionsTest extends WC_Unit_Test_Case {
'IN' => 7,
'ID' => 4,
'JP' => 9,
- 'MY' => 5,
+ 'MY' => 6,
'NC' => 3,
'NZ' => 9,
'PW' => 3,
'PH' => 4,
'SG' => 7,
'LK' => 2,
- 'KR' => 3,
+ 'KR' => 4,
'TH' => 5,
'VN' => 4,
'DZ' => 3,
@@ -263,6 +263,7 @@ class PaymentsExtensionSuggestionsTest extends WC_Unit_Test_Case {
'ML' => 1,
'MR' => 1,
'MU' => 3,
+ 'YT' => 1,
'MA' => 4,
'MZ' => 3,
'NA' => 1,
@@ -584,7 +585,7 @@ class PaymentsExtensionSuggestionsTest extends WC_Unit_Test_Case {
'GD' => 5,
'GP' => 4,
'GT' => 5,
- 'GY' => 3,
+ 'GY' => 5,
'HN' => 5,
'JM' => 5,
'MQ' => 4,
@@ -612,14 +613,14 @@ class PaymentsExtensionSuggestionsTest extends WC_Unit_Test_Case {
'IN' => 7,
'ID' => 4,
'JP' => 9,
- 'MY' => 5,
+ 'MY' => 6,
'NC' => 3,
'NZ' => 9,
'PW' => 3,
'PH' => 4,
'SG' => 7,
'LK' => 2,
- 'KR' => 3,
+ 'KR' => 4,
'TH' => 5,
'VN' => 4,
'DZ' => 3,
@@ -656,6 +657,7 @@ class PaymentsExtensionSuggestionsTest extends WC_Unit_Test_Case {
'ML' => 1,
'MR' => 1,
'MU' => 3,
+ 'YT' => 1,
'MA' => 4,
'MZ' => 3,
'NA' => 1,