From dda9d120b63e4d1e6a93248e0569e045a6c0e9c7 Mon Sep 17 00:00:00 2001 From: louwie17 Date: Wed, 25 Aug 2021 16:28:04 -0300 Subject: [PATCH] Add HK and SG countries to back up wc pay supported lists (https://github.com/woocommerce/woocommerce-admin/pull/7558) * Add HK and SG countries to back up wc pay supported lists * Add changelog --- .../changelogs/add-7547_wcpay_intl_countries | 4 ++++ .../tasks/PaymentGatewaySuggestions/components/WCPay/utils.js | 2 ++ .../PaymentGatewaySuggestions/DefaultPaymentGateways.php | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 plugins/woocommerce-admin/changelogs/add-7547_wcpay_intl_countries diff --git a/plugins/woocommerce-admin/changelogs/add-7547_wcpay_intl_countries b/plugins/woocommerce-admin/changelogs/add-7547_wcpay_intl_countries new file mode 100644 index 00000000000..a9fc54e28bf --- /dev/null +++ b/plugins/woocommerce-admin/changelogs/add-7547_wcpay_intl_countries @@ -0,0 +1,4 @@ +Significance: minor +Type: Update + +Add HK and SG countries to WC Pay intl support. #7558 diff --git a/plugins/woocommerce-admin/client/task-list/tasks/PaymentGatewaySuggestions/components/WCPay/utils.js b/plugins/woocommerce-admin/client/task-list/tasks/PaymentGatewaySuggestions/components/WCPay/utils.js index 226c7263d4a..d079c02eee5 100644 --- a/plugins/woocommerce-admin/client/task-list/tasks/PaymentGatewaySuggestions/components/WCPay/utils.js +++ b/plugins/woocommerce-admin/client/task-list/tasks/PaymentGatewaySuggestions/components/WCPay/utils.js @@ -68,6 +68,8 @@ export function isWCPaySupported( countryCode ) { 'PL', 'PT', 'CH', + 'HK', + 'SG', ]; return supportedCountries.includes( countryCode ); diff --git a/plugins/woocommerce-admin/src/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php b/plugins/woocommerce-admin/src/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php index d52b3562ca5..9511160090c 100644 --- a/plugins/woocommerce-admin/src/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php +++ b/plugins/woocommerce-admin/src/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php @@ -252,7 +252,7 @@ class DefaultPaymentGateways { * @return array Array of countries. */ public static function get_wcpay_countries() { - return array( 'US', 'PR', 'AU', 'CA', 'DE', 'ES', 'FR', 'GB', 'IE', 'IT', 'NZ', 'AT', 'BE', 'NL', 'PL', 'PT', 'CH' ); + return array( 'US', 'PR', 'AU', 'CA', 'DE', 'ES', 'FR', 'GB', 'IE', 'IT', 'NZ', 'AT', 'BE', 'NL', 'PL', 'PT', 'CH', 'HK', 'SG' ); } /**