src/icepay_api_base.php
public function setAmount($amount)
    {
        $amount = (int) (string) $amount;

        if (!Icepay_Parameter_Validation::amount($amount))
            throw new Exception('Amount not valid');
        $this->data->ic_amount = $amount;
        return $this;
    }
public function setAmount($amount)
    {
        $amount = (int) (string) $amount;

        if (!Icepay_Parameter_Validation::amount($amount))
            throw new Exception('Amount not valid');
        $this->data->ic_amount = $amount;
        return $this;
    }
public function setAmount ( $ amount ) { $ amount = ( int ) ( string ) $ amount ; if ( ! Icepay_Parameter_Validation :: amount ( $ amount ) ) throw new Exception ( 'Amount not valid' ) ; $ this -> data -> ic_amount = $ amount ; return $ this ; }
Set the amount field
@since version 1.0.0
@access public
@param int $amount !Required
Set the amount field