We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e43f0d commit ecc640cCopy full SHA for ecc640c
src/Client.php
@@ -255,13 +255,13 @@ public function getCreditAgreements($amount, $merchant)
255
curl_close($this->ch);
256
}
257
258
- public function updateOrder($uri, $order)
+ public function updateOrder($uri, $order, $verb = 'PUT')
259
{
260
if ( ! preg_match('!^https?://!', $uri)) {
261
$uri = $this->_endpoint . '/orders/' . $uri;
262
263
$this->initCurl($uri);
264
- $this->verbThePayload('PUT', array('order' => $order));
+ $this->verbThePayload($verb, array('order' => $order));
265
266
if ($this->status >= 200 && $this->status <= 299) {
267
$this->success = true;
0 commit comments