src/SecucardConnect/Product/Payment/Service/PaymentService.php
public function updateBasket($paymentId, array $basket, $contractId = null)
    {
        $class = $this->resourceMetadata->resourceClass;
        /**
         * @var $object Transaction
         */
        $object = new $class();
        $object->id = $paymentId;
        $object->basket = $basket;
        $object->contract = $contractId;
        $res = $this->updateWithAction($paymentId, 'basket', null, $object, $class);

        if ($res) {
            return true;
        }

        return false;
    }
public function updateBasket($paymentId, array $basket, $contractId = null)
    {
        $class = $this->resourceMetadata->resourceClass;
        /**
         * @var $object Transaction
         */
        $object = new $class();
        $object->id = $paymentId;
        $object->basket = $basket;
        $object->contract = $contractId;
        $res = $this->updateWithAction($paymentId, 'basket', null, $object, $class);

        if ($res) {
            return true;
        }

        return false;
    }
public function updateBasket ( $ paymentId , array $ basket , $ contractId = null ) { $ class = $ this -> resourceMetadata -> resourceClass ; /**
         * @var $object Transaction
         */ $ object = new $ class ( ) ; $ object -> id = $ paymentId ; $ object -> basket = $ basket ; $ object -> contract = $ contractId ; $ res = $ this -> updateWithAction ( $ paymentId , 'basket' , null , $ object , $ class ) ; if ( $ res ) { return true ; } return false ; }
Add additional basket items to the payment transaction. F.e. for adding stakeholder payment items.

@param string $paymentId The payment transaction id
@param Basket[] $basket
@param string $contractId The id of the contract that was used to create this transaction.
@return bool TRUE if successful, FALSE otherwise.
@throws GuzzleException
@throws ApiError
@throws AuthError
@throws ClientError
Add additional basket items to the payment transaction . F . e . for adding stakeholder payment items .