public function retrieveOrderSettlement($orderId, $keyId)
    {
        $response = $this->request(
            'GET',
            self::$path . "/order/$orderId",
            ['KeyId' => $keyId]
        )->status('200')
        ->contentType('application/json')
        ->getJson();

        return $response;
    }
public function retrieveOrderSettlement($orderId, $keyId)
    {
        $response = $this->request(
            'GET',
            self::$path . "/order/$orderId",
            ['KeyId' => $keyId]
        )->status('200')
        ->contentType('application/json')
        ->getJson();

        return $response;
    }
public function retrieveOrderSettlement ( $ orderId , $ keyId ) { $ response = $ this -> request ( 'GET' , self :: $ path . "/order/$orderId" , [ 'KeyId' => $ keyId ] ) -> status ( '200' ) -> contentType ( 'application/json' ) -> getJson ( ) ; return $ response ; }
Retrieves a settled order's settlement.

@see https://developers.klarna.com/api/#hosted-payment-page-api-distribute-link-to-the-hpp-session

@param array $data Distribute data

@throws ConnectorException        When the API replies with an error response
@throws RequestException          When an error is encountered
@throws \RuntimeException         On an unexpected API response
@throws \RuntimeException         If the response content type is not JSON
@throws \InvalidArgumentException If the JSON cannot be parsed
@throws \LogicException           When Guzzle cannot populate the response

@return array Order's settlement data
Retrieves a settled order s settlement .