Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Trustly/Api/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ abstract class Trustly_Api {
public function __construct($host='trustly.com', $port=443, $is_https=TRUE) {
$this->api_is_https = $is_https;

if($this->loadTrustlyPublicKey($host, $port, $is_https) === FALSE) {
if($this->loadTrustlyPublicKey($host, $port) === FALSE) {
$error = openssl_error_string();
throw new InvalidArgumentException("Cannot load Trustly public key file for host $host".(isset($error)?", error $error":''));
}
Expand Down
2 changes: 1 addition & 1 deletion Trustly/Api/signed.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ protected function insertCredentials($request) {
* @return Trustly_Data_JSONRPCSignedResponse
*/
protected function handleResponse($request, $body, $response_code) {
$response = new Trustly_Data_JSONRPCSignedResponse($body, $response_code);
$response = new Trustly_Data_JSONRPCSignedResponse($body);

if($this->verifyTrustlySignedResponse($response) !== TRUE) {
throw new Trustly_SignatureException('Incomming message signature is not valid', $response);
Expand Down
2 changes: 1 addition & 1 deletion Trustly/Api/unsigned.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected function urlPath($request=NULL) {
*/
protected function handleResponse($request, $body, $response_code) {
/* No signature here, just build the response object */
return new Trustly_Data_JSONRPCResponse($body, $response_code);
return new Trustly_Data_JSONRPCResponse($body);
}


Expand Down