Skip to content

Commit

Permalink
Merge pull request #126 from pm-alexander-serbe/master
Browse files Browse the repository at this point in the history
DELETE parameters fixed
  • Loading branch information
mschindler83 committed Mar 21, 2016
2 parents 768f196 + fd1d376 commit 5f6f9ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Paymill/API/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function requestApi($action = '', $params = array(), $method = 'POST')
$curlOpts = $this->_extraOptions + $curlOpts;
}

if ('GET' === $method) {
if ('GET' === $method || 'DELETE' === $method) {
if (0 !== count($params)) {
$curlOpts[CURLOPT_URL] .= false === strpos($curlOpts[CURLOPT_URL], '?') ? '?' : '&';
$curlOpts[CURLOPT_URL] .= http_build_query($params, null, '&');
Expand Down Expand Up @@ -129,7 +129,7 @@ protected function _curlOpts($curl, array $curlOpts)
}

/**
* Wrapps the curlExec function call
* Wraps the curlExec function call
* @param resource $curl cURL handle passed to curl_exec
* @return mixed
*/
Expand All @@ -139,7 +139,7 @@ protected function _curlExec($curl)
}

/**
* Wrapps the curlInfo function call
* Wraps the curlInfo function call
* @param resource $curl cURL handle passed to curl_getinfo
* @return mixed
*/
Expand All @@ -149,7 +149,7 @@ protected function _curlInfo($curl)
}

/**
* Wrapps the curlError function call
* Wraps the curlError function call
* @param resource $curl cURL handle passed to curl_error
* @return mixed
*/
Expand Down

0 comments on commit 5f6f9ea

Please sign in to comment.