Paranoia\Payment\Adapter\Posnet::formatAmount PHP Method

formatAmount() protected method

{@inheritdoc} Posnet tutar değerinde nokta istemiyor. Örnek:15.00TL için 1500 gönderilmesi gerekiyor.
See also: Paranoia\Payment\Adapter\AdapterAbstract::formatAmount()
protected formatAmount ( $amount, $reverse = false )
    protected function formatAmount($amount, $reverse = false)
    {
        if (!$reverse) {
            return ceil($amount * 100);
        } else {
            return (double) sprintf('%s.%s', substr($amount, 0, -2), substr($amount, -2));
        }
    }