Skip to content

Commit ecc640c

Browse files
committed
Allow other verbs for updateOrder
1 parent 2e43f0d commit ecc640c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,13 @@ public function getCreditAgreements($amount, $merchant)
255255
curl_close($this->ch);
256256
}
257257

258-
public function updateOrder($uri, $order)
258+
public function updateOrder($uri, $order, $verb = 'PUT')
259259
{
260260
if ( ! preg_match('!^https?://!', $uri)) {
261261
$uri = $this->_endpoint . '/orders/' . $uri;
262262
}
263263
$this->initCurl($uri);
264-
$this->verbThePayload('PUT', array('order' => $order));
264+
$this->verbThePayload($verb, array('order' => $order));
265265

266266
if ($this->status >= 200 && $this->status <= 299) {
267267
$this->success = true;

0 commit comments

Comments
 (0)