22 public static function isEnabled( $rule, $currency, $country ) {
23 $country = strtoupper( $country );
24 $currency = strtoupper( $currency );
26 if ( array_key_exists( $currency, $rule ) ) {
27 if ( !is_array( $rule[$currency] ) ) {
28 if ( $rule[$currency] === $country ) {
32 if ( empty( $rule[$currency] ) || in_array( $country, $rule[$currency] ) ) {