Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Now throwing curl error
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Pieters committed Sep 21, 2016
1 parent 33b7f1b commit d7af9cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Pay/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Pay_Api {
const REQUEST_TYPE_POST = 1;
const REQUEST_TYPE_GET = 0;

protected $_apiUrl = 'http://rest-api.pay.nl';
protected $_apiUrl = 'https://rest-api.pay.nl';
protected $_version = 'v3';
protected $_controller = '';
protected $_action = '';
Expand Down Expand Up @@ -88,6 +88,7 @@ public function doRequest() {

if ($result == false) {
$error = curl_error($ch);
throw new Pay_Api_Exception("Curl error: ".$error);
}
curl_close($ch);

Expand Down

0 comments on commit d7af9cf

Please sign in to comment.