WC_Gateway_Paypal::is_valid_for_use()
Check if this gateway is available in the user's country based on currency.
Метод класса: WC_Gateway_Paypal{}
Хуки из метода
Возвращает
true|false
.
Использование
$WC_Gateway_Paypal = new WC_Gateway_Paypal(); $WC_Gateway_Paypal->is_valid_for_use();
Код WC_Gateway_Paypal::is_valid_for_use() WC Gateway Paypal::is valid for use WC 8.7.0
public function is_valid_for_use() { return in_array( get_woocommerce_currency(), apply_filters( 'woocommerce_paypal_supported_currencies', array( 'AUD', 'BRL', 'CAD', 'MXN', 'NZD', 'HKD', 'SGD', 'USD', 'EUR', 'JPY', 'TRY', 'NOK', 'CZK', 'DKK', 'HUF', 'ILS', 'MYR', 'PHP', 'PLN', 'SEK', 'CHF', 'TWD', 'THB', 'GBP', 'RMB', 'RUB', 'INR' ) ), true ); }