WC_Gateway_Paypal_Request::currency_has_decimals( string $currency )

Check if currency has decimals.


Description Description


Parameters Parameters

$currency

(Required) Currency to check.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php

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

		return true;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.