public function PayPalCheckoutClient::createOrder in Commerce PayPal 7.2
Creates an order in PayPal.
Parameters
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 180 - Defines a class for consuming the PayPal Checkout API.
Class
- PayPalCheckoutClient
- Defines the PayPalCheckoutClient class.
Code
public function createOrder($parameters) {
return $this
->submitRequest('POST', 'v2/checkout/orders', $parameters);
}