public function getCurrencyDecimalPlaces()
    {
        if ($this->getCurrency()) {
            $currency = new Currency($this->getCurrency());
            if ($this->getCurrencies()->contains($currency)) {
                return $this->getCurrencies()->subunitFor($currency);
            }
        }

        return 2;
    }
public function getCurrencyDecimalPlaces()
    {
        if ($this->getCurrency()) {
            $currency = new Currency($this->getCurrency());
            if ($this->getCurrencies()->contains($currency)) {
                return $this->getCurrencies()->subunitFor($currency);
            }
        }

        return 2;
    }
public function getCurrencyDecimalPlaces ( ) { if ( $ this -> getCurrency ( ) ) { $ currency = new Currency ( $ this -> getCurrency ( ) ) ; if ( $ this -> getCurrencies ( ) -> contains ( $ currency ) ) { return $ this -> getCurrencies ( ) -> subunitFor ( $ currency ) ; } } return 2 ; }
Get the number of decimal places in the payment currency.

@return integer
Get the number of decimal places in the payment currency .