src/Klarna.php
public function changeReservation(
        $rno, $amount, $flags = KlarnaFlags::NEW_AMOUNT
    ) {
        $this->_checkRNO($rno);
        $this->_checkAmount($amount);
        $this->_checkInt($flags, 'flags');

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

        self::printDebug('change_reservation', $paramList);

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

        return ($result  == 'ok') ? true : false;
    }
public function changeReservation(
        $rno, $amount, $flags = KlarnaFlags::NEW_AMOUNT
    ) {
        $this->_checkRNO($rno);
        $this->_checkAmount($amount);
        $this->_checkInt($flags, 'flags');

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

        self::printDebug('change_reservation', $paramList);

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

        return ($result  == 'ok') ? true : false;
    }
public function changeReservation ( $ rno , $ amount , $ flags = KlarnaFlags :: NEW_AMOUNT ) { $ this -> _checkRNO ( $ rno ) ; $ this -> _checkAmount ( $ amount ) ; $ this -> _checkInt ( $ flags , 'flags' ) ; $ digestSecret = self :: digest ( $ this -> colon ( $ this -> _eid , $ rno , $ amount , $ this -> _secret ) ) ; $ paramList = array ( $ rno , $ amount , $ this -> _eid , $ digestSecret , $ flags ) ; self :: printDebug ( 'change_reservation' , $ paramList ) ; $ result = $ this -> xmlrpc_call ( 'change_reservation' , $ paramList ) ; return ( $ result == 'ok' ) ? true : false ; }
Changes specified reservation to a new amount.

<b>Flags can be either of these</b>:<br>
{@link KlarnaFlags::NEW_AMOUNT}<br>
{@link KlarnaFlags::ADD_AMOUNT}<br>

@param string $rno    Reservation number.
@param int    $amount Amount including VAT.
@param int    $flags  Options which affect the behaviour.


@throws KlarnaException
@return bool    True, if the change was successful.
Changes specified reservation to a new amount .