Payu\Builder\PaymentRequestBuilder::buildAndAddProduct PHP Method

buildAndAddProduct() public method

public buildAndAddProduct ( null $name = null, null $code = null, null $quantity = null, null $info = null, null $price = null, null $version = null, null $vat = null, null $priceType = null )
$name null
$code null
$quantity null
$info null
$price null
$version null
$vat null
$priceType null
    public function buildAndAddProduct($name = null, $code = null, $quantity = null, $info = null, $price = null, $version = null, $vat = null, $priceType = null)
    {
        $this->basket->add(new Product($name, $code, $quantity, $info, $price, $version, $vat, $priceType));
        return $this;
    }