Sonata\Component\Payment\Scellius\ScelliusPayment::getAmount PHP Method

getAmount() private method

private getAmount ( $amount, $currency ) : string
$amount
$currency
return string
    private function getAmount($amount, $currency)
    {
        $list = self::getCurrencyList();
        if (!isset($list[$currency])) {
            throw new \RuntimeException('Invalid currency provided');
        }
        return (int) (100 * bcmul(1, $amount, $list[$currency]['fraction']));
    }