src/icepay_api_order.php
public function addProduct(Icepay_Order_Product $obj) {
        if (!isset($this->_data["products"]))
            $this->_data["products"] = Array();
        array_push($this->_data["products"], $obj);
        return $this;
    }
public function addProduct(Icepay_Order_Product $obj) {
        if (!isset($this->_data["products"]))
            $this->_data["products"] = Array();
        array_push($this->_data["products"], $obj);
        return $this;
    }
public function addProduct ( Icepay_Order_Product $ obj ) { if ( ! isset ( $ this -> _data [ "products" ] ) ) $ this -> _data [ "products" ] = Array ( ) ; array_push ( $ this -> _data [ "products" ] , $ obj ) ; return $ this ; }
Adds a product to the order

@since 1.0.0
@param obj object containing the Icepay_Order_Product class
@return \Icepay_Order
Adds a product to the order