WC_Gateway_Paypal_Request::currency_has_decimals() protected WC 1.0
Check if currency has decimals.
{} Это метод класса: WC_Gateway_Paypal_Request{}
Хуков нет.
Возвращает
true/false.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->currency_has_decimals( $currency );
- $currency(строка) (обязательный)
- Currency to check.
Код WC_Gateway_Paypal_Request::currency_has_decimals() WC Gateway Paypal Request::currency has decimals WC 5.0.0
protected function currency_has_decimals( $currency ) {
if ( in_array( $currency, array( 'HUF', 'JPY', 'TWD' ), true ) ) {
return false;
}
return true;
}