public function RecurringOrderManagerInterface::closeOrder in Commerce Recurring Framework 8
Closes the given recurring order.
A payment will be created and the order will be placed.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The recurring order.
Throws
\Drupal\commerce_payment\Exception\HardDeclineException Thrown when no payment method was found.
\Drupal\commerce_payment\Exception\PaymentGatewayException Thrown when the transaction fails for any reason. This includes child exceptions such as HardDeclineException and SoftDeclineException.
1 method overrides RecurringOrderManagerInterface::closeOrder()
- RecurringOrderManager::closeOrder in src/
RecurringOrderManager.php - Closes the given recurring order.
File
- src/
RecurringOrderManagerInterface.php, line 87
Class
- RecurringOrderManagerInterface
- Manages recurring orders.
Namespace
Drupal\commerce_recurringCode
public function closeOrder(OrderInterface $order);