You are here

public function PayPalCheckoutClient::getOrder in Commerce PayPal 7.2

Get an existing order from PayPal.

Parameters

$remote_id: The PayPal order ID.

Return value

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

File

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

Class

PayPalCheckoutClient
Defines the PayPalCheckoutClient class.

Code

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