src/icepay_api_order.php
public function setShippingCosts($amount, $vat = -1, $name = 'Shipping Costs') {
        $obj = Icepay_Order_Product::create()
                ->setProductID('01')
                ->setProductName($name)
                ->setDescription('')
                ->setQuantity('1')
                ->setUnitPrice($amount)
                ->setVATCategory(Icepay_Order_VAT::getCategoryForPercentage($vat));

        $this->addProduct($obj);

        return $this;
    }
public function setShippingCosts($amount, $vat = -1, $name = 'Shipping Costs') {
        $obj = Icepay_Order_Product::create()
                ->setProductID('01')
                ->setProductName($name)
                ->setDescription('')
                ->setQuantity('1')
                ->setUnitPrice($amount)
                ->setVATCategory(Icepay_Order_VAT::getCategoryForPercentage($vat));

        $this->addProduct($obj);

        return $this;
    }
public function setShippingCosts ( $ amount , $ vat = - 1 , $ name = 'Shipping Costs' ) { $ obj = Icepay_Order_Product :: create ( ) -> setProductID ( '01' ) -> setProductName ( $ name ) -> setDescription ( '' ) -> setQuantity ( '1' ) -> setUnitPrice ( $ amount ) -> setVATCategory ( Icepay_Order_VAT :: getCategoryForPercentage ( $ vat ) ) ; $ this -> addProduct ( $ obj ) ; return $ this ; }
Sets the order shipping costs

@since 1.0.0
@param string $amount Contains the shipping costs in cents
@param int $vat Contains the VAT category in percentages
@param string $name Contains the shipping name
@return \Icepay_Order
Sets the order shipping costs