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");
        }
        $this->parameters['amount'] = $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");
        }
        $this->parameters['amount'] = $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" ) ; } $ this -> parameters [ 'amount' ] = $ amount ; }
Set amount in cents, eg EUR 12.34 is written as 1234
Set amount in cents eg EUR 12 . 34 is written as 1234