function setBasket(Basket $basket)
    {
        foreach ($basket->toArray() as $param => $value) {
            $this->addParam($param, $value);
        }

        return $this;
    }
function setBasket(Basket $basket)
    {
        foreach ($basket->toArray() as $param => $value) {
            $this->addParam($param, $value);
        }

        return $this;
    }
function setBasket ( Basket $ basket ) { foreach ( $ basket -> toArray ( ) as $ param => $ value ) { $ this -> addParam ( $ param , $ value ) ; } return $ this ; }
Adds the basket to the payment, required for some payment methods

@param Basket $basket
@return InitPaymentRequest
Adds the basket to the payment required for some payment methods