WordPress at Your Fingertips
function is not described

WC_Gateway_Paypal_Request::currency_has_decimals() protected WC 1.0

Check if currency has decimals.

{} It's a method of the class: WC_Gateway_Paypal_Request{}

No Hooks.

Return

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->currency_has_decimals( $currency );
$currency(string) (required)
Currency to check.

Code of WC_Gateway_Paypal_Request::currency_has_decimals() WC 5.6.0

protected function currency_has_decimals( $currency ) {
	if ( in_array( $currency, array( 'HUF', 'JPY', 'TWD' ), true ) ) {
		return false;
	}

	return true;
}