public function CheckoutSdkInterface::createOrder in Commerce PayPal 8
Creates an order in PayPal.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The order.
\Drupal\address\AddressInterface $billing_address: (optional) A billing address to pass to PayPal as the payer information. This is used in checkout to pass the entered address that is not yet submitted and associated to the order.
Return value
\Psr\Http\Message\ResponseInterface The HTTP response.
1 method overrides CheckoutSdkInterface::createOrder()
- CheckoutSdk::createOrder in src/
CheckoutSdk.php - Creates an order in PayPal.
File
- src/
CheckoutSdkInterface.php, line 39
Class
Namespace
Drupal\commerce_paypalCode
public function createOrder(OrderInterface $order, AddressInterface $billing_address = NULL);