src/icepay_api_order.php
public function setZipCode($zipCode) {
        if (empty($zipCode))
            throw new Exception('Zipcode must be set and cannot be empty.');

        $zipCode = str_replace(' ', '', $zipCode);

        $this->zipCode = trim($zipCode);

        return $this;
    }
public function setZipCode($zipCode) {
        if (empty($zipCode))
            throw new Exception('Zipcode must be set and cannot be empty.');

        $zipCode = str_replace(' ', '', $zipCode);

        $this->zipCode = trim($zipCode);

        return $this;
    }
public function setZipCode ( $ zipCode ) { if ( empty ( $ zipCode ) ) throw new Exception ( 'Zipcode must be set and cannot be empty.' ) ; $ zipCode = str_replace ( ' ' , '' , $ zipCode ) ; $ this -> zipCode = trim ( $ zipCode ) ; return $ this ; }
Sets the address zipcode

@since 1.0.0
@param string A string containing the zipcode
@return \Icepay_Order_Address
@throws Exception when empty
Sets the address zipcode