Model/Adapter/ChargeAmountAdapter.php
public static function getGatewayAmountOfCurrency($amount, $currencyCode) {
        $currencyCode = strtoupper($currencyCode);

        if ( ! is_numeric($amount) ) {
            throw new InvalidArgumentException('The amount value is not numeric. The [' . $amount . '] value has been given.');
        }

        $amount = (float) $amount;

        if ($amount < 0) {
            throw new InvalidArgumentException('The amount value must be positive. The [' . $amount . '] value has been given.');
        }

        if( in_array($currencyCode, self::FULL_VALUE_CURRENCIES, true) ) {
            return (int) $amount;
        }

        if( in_array($currencyCode, self::DIV_1000_VALUE_CURRENCIES, true) ) {
            return (int) ($amount * self::DIV_1000);
        }

        return (int) ($amount * self::DIV_100);
    }
public static function getGatewayAmountOfCurrency($amount, $currencyCode) {
        $currencyCode = strtoupper($currencyCode);

        if ( ! is_numeric($amount) ) {
            throw new InvalidArgumentException('The amount value is not numeric. The [' . $amount . '] value has been given.');
        }

        $amount = (float) $amount;

        if ($amount < 0) {
            throw new InvalidArgumentException('The amount value must be positive. The [' . $amount . '] value has been given.');
        }

        if( in_array($currencyCode, self::FULL_VALUE_CURRENCIES, true) ) {
            return (int) $amount;
        }

        if( in_array($currencyCode, self::DIV_1000_VALUE_CURRENCIES, true) ) {
            return (int) ($amount * self::DIV_1000);
        }

        return (int) ($amount * self::DIV_100);
    }
public static function getGatewayAmountOfCurrency ( $ amount , $ currencyCode ) { $ currencyCode = strtoupper ( $ currencyCode ) ; if ( ! is_numeric ( $ amount ) ) { throw new InvalidArgumentException ( 'The amount value is not numeric. The [' . $ amount . '] value has been given.' ) ; } $ amount = ( float ) $ amount ; if ( $ amount < 0 ) { throw new InvalidArgumentException ( 'The amount value must be positive. The [' . $ amount . '] value has been given.' ) ; } if ( in_array ( $ currencyCode , self :: FULL_VALUE_CURRENCIES , true ) ) { return ( int ) $ amount ; } if ( in_array ( $ currencyCode , self :: DIV_1000_VALUE_CURRENCIES , true ) ) { return ( int ) ( $ amount * self :: DIV_1000 ) ; } return ( int ) ( $ amount * self :: DIV_100 ) ; }
Returns transformed amount by the given currency code which can be handled by the gateway API.

@param float $amount Value from the store.
@param string $currencyCode
@return int
@throws InvalidArgumentException
Returns transformed amount by the given currency code which can be handled by the gateway API .