Ogone\AbstractPaymentRequest::setAmount PHP Метод

setAmount() публичный Метод

Set amount in cents, eg EUR 12.34 is written as 1234
public setAmount ( $amount )
    public function setAmount($amount)
    {
        if (!is_int($amount)) {
            throw new InvalidArgumentException("Integer expected. Amount is always in cents");
        }
        if ($amount <= 0) {
            throw new InvalidArgumentException("Amount must be a positive number");
        }
        if ($amount >= 1000000000000000.0) {
            throw new InvalidArgumentException("Amount is too high");
        }
        $this->parameters['amount'] = $amount;
    }