You are here

public function PayPalCheckoutClient::updateOrder in Commerce PayPal 7.2

Updates an existing PayPal order.

Parameters

$remote_id: The PayPal order ID.

array $parameters: An array of parameters to include with the request.

Return value

string[] The API response JSON converted to an associative array.

File

modules/checkout/lib/PayPalCheckoutClient.php, line 208
Defines a class for consuming the PayPal Checkout API.

Class

PayPalCheckoutClient
Defines the PayPalCheckoutClient class.

Code

public function updateOrder($remote_id, $parameters) {
  return $this
    ->submitRequest('PATCH', sprintf('v2/checkout/orders/%s', $remote_id), $parameters);
}