public function splitReservation(
        $rno, $amount, $flags = KlarnaFlags::NO_FLAG
    ) {
        //Check so required information is set.
        $this->_checkRNO($rno);
        $this->_checkAmount($amount);

        if ($amount <= 0) {
            throw new Klarna_InvalidPriceException($amount);
        }

        $digestSecret = self::digest(
            $this->colon($this->_eid, $rno, $amount, $this->_secret)
        );
        $paramList = array(
            $rno,
            $amount,
            $this->orderid[0],
            $this->orderid[1],
            $flags,
            $this->_eid,
            $digestSecret
        );

        self::printDebug('split_reservation array', $paramList);

        $result = $this->xmlrpc_call('split_reservation', $paramList);

        self::printDebug('split_reservation result', $result);

        return $result;
    }
public function splitReservation(
        $rno, $amount, $flags = KlarnaFlags::NO_FLAG
    ) {
        //Check so required information is set.
        $this->_checkRNO($rno);
        $this->_checkAmount($amount);

        if ($amount <= 0) {
            throw new Klarna_InvalidPriceException($amount);
        }

        $digestSecret = self::digest(
            $this->colon($this->_eid, $rno, $amount, $this->_secret)
        );
        $paramList = array(
            $rno,
            $amount,
            $this->orderid[0],
            $this->orderid[1],
            $flags,
            $this->_eid,
            $digestSecret
        );

        self::printDebug('split_reservation array', $paramList);

        $result = $this->xmlrpc_call('split_reservation', $paramList);

        self::printDebug('split_reservation result', $result);

        return $result;
    }
public function splitReservation ( $ rno , $ amount , $ flags = KlarnaFlags :: NO_FLAG ) { //Check so required information is set. $ this -> _checkRNO ( $ rno ) ; $ this -> _checkAmount ( $ amount ) ; if ( $ amount <= 0 ) { throw new Klarna_InvalidPriceException ( $ amount ) ; } $ digestSecret = self :: digest ( $ this -> colon ( $ this -> _eid , $ rno , $ amount , $ this -> _secret ) ) ; $ paramList = array ( $ rno , $ amount , $ this -> orderid [ 0 ] , $ this -> orderid [ 1 ] , $ flags , $ this -> _eid , $ digestSecret ) ; self :: printDebug ( 'split_reservation array' , $ paramList ) ; $ result = $ this -> xmlrpc_call ( 'split_reservation' , $ paramList ) ; self :: printDebug ( 'split_reservation result' , $ result ) ; return $ result ; }
Splits a reservation due to for example outstanding articles.

<b>For flags usage see</b>:<br>
{@link Klarna::reserveAmount()}<br>

@param string $rno    Reservation number.
@param int    $amount The amount to be subtracted from the reservation.
@param int    $flags  Options which affect the behaviour.


@throws KlarnaException
@return string A new reservation number.
Splits a reservation due to for example outstanding articles .