src/Klarna.php
public function creditInvoice($invNo, $credNo = "")
    {
        $this->_checkInvNo($invNo);
        $this->_checkCredNo($credNo);

        $digestSecret = self::digest(
            $this->colon($this->_eid, $invNo, $this->_secret)
        );
        $paramList = array(
            $this->_eid,
            $invNo,
            $credNo,
            $digestSecret
        );

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

        return $this->xmlrpc_call('credit_invoice', $paramList);
    }
public function creditInvoice($invNo, $credNo = "")
    {
        $this->_checkInvNo($invNo);
        $this->_checkCredNo($credNo);

        $digestSecret = self::digest(
            $this->colon($this->_eid, $invNo, $this->_secret)
        );
        $paramList = array(
            $this->_eid,
            $invNo,
            $credNo,
            $digestSecret
        );

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

        return $this->xmlrpc_call('credit_invoice', $paramList);
    }
public function creditInvoice ( $ invNo , $ credNo = "" ) { $ this -> _checkInvNo ( $ invNo ) ; $ this -> _checkCredNo ( $ credNo ) ; $ digestSecret = self :: digest ( $ this -> colon ( $ this -> _eid , $ invNo , $ this -> _secret ) ) ; $ paramList = array ( $ this -> _eid , $ invNo , $ credNo , $ digestSecret ) ; self :: printDebug ( 'credit_invoice' , $ paramList ) ; return $ this -> xmlrpc_call ( 'credit_invoice' , $ paramList ) ; }
Performs a complete refund on an invoice, part payment and mobile
purchase.

@param string $invNo  Invoice number.
@param string $credNo Credit number.

@throws KlarnaException
@return string  Invoice number.
Performs a complete refund on an invoice part payment and mobile purchase .