public function CheckoutSdk::getOrder in Commerce PayPal 8
Get an existing order from PayPal.
Parameters
string $remote_id: The PayPal order ID.
Return value
\Psr\Http\Message\ResponseInterface The HTTP response.
Overrides CheckoutSdkInterface::getOrder
File
- src/
CheckoutSdk.php, line 125
Class
- CheckoutSdk
- Provides a replacement of the PayPal SDK.
Namespace
Drupal\commerce_paypalCode
public function getOrder($remote_id) {
return $this->client
->get(sprintf('/v2/checkout/orders/%s', $remote_id));
}