Skip to content

Commit

Permalink
Remove support for Czech Republic, Sweden, Hungary
Browse files Browse the repository at this point in the history
  • Loading branch information
elazzabi committed May 10, 2023
1 parent 9d9ca67 commit 0a8309f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 20 deletions.
Expand Up @@ -86,11 +86,8 @@ export function isWCPaySupported( countryCode ) {
'SI',
'SK',
'BG',
'CZ',
'HR',
'HU',
'RO',
'SE',
];

return supportedCountries.includes( countryCode );
Expand Down
@@ -1,4 +1,4 @@
Significance: minor
Type: add

Add support for BG, CZ, HR, HU, RO and SE in WCPay
Add support for BG, HR, and RO in WCPay
Expand Up @@ -848,7 +848,7 @@ public static function get_all() {
* @return array Array of countries.
*/
public static function get_wcpay_countries() {
return array( 'US', 'PR', 'AU', 'CA', 'CY', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GB', 'GR', 'IE', 'IT', 'LU', 'LT', 'LV', 'NO', 'NZ', 'MT', 'AT', 'BE', 'NL', 'PL', 'PT', 'CH', 'HK', 'SI', 'SK', 'SG', 'BG', 'CZ', 'HR', 'HU', 'RO', 'SE' );
return array( 'US', 'PR', 'AU', 'CA', 'CY', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GB', 'GR', 'IE', 'IT', 'LU', 'LT', 'LV', 'NO', 'NZ', 'MT', 'AT', 'BE', 'NL', 'PL', 'PT', 'CH', 'HK', 'SI', 'SK', 'SG', 'BG', 'HR', 'RO' );
}

/**
Expand Down
Expand Up @@ -351,31 +351,16 @@ public static function get_plugin( $slug ) {
'value' => 'BG',
'operation' => '=',
],
[
'type' => 'base_location_country',
'value' => 'CZ',
'operation' => '=',
],
[
'type' => 'base_location_country',
'value' => 'HR',
'operation' => '=',
],
[
'type' => 'base_location_country',
'value' => 'HU',
'operation' => '=',
],
[
'type' => 'base_location_country',
'value' => 'RO',
'operation' => '=',
],
[
'type' => 'base_location_country',
'value' => 'SE',
'operation' => '=',
],
],
],
DefaultPaymentGateways::get_rules_for_cbd( false ),
Expand Down

0 comments on commit 0a8309f

Please sign in to comment.