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
This commit is contained in:
louwie17 2021-08-25 16:28:04 -03:00 committed by GitHub
parent ea17558e9a
commit dda9d120b6
3 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: Update
Add HK and SG countries to WC Pay intl support. #7558

View File

@ -68,6 +68,8 @@ export function isWCPaySupported( countryCode ) {
'PL',
'PT',
'CH',
'HK',
'SG',
];
return supportedCountries.includes( countryCode );

View File

@ -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' );
}
/**