You are here

public function PaymentOrderUpdaterInterface::updateOrder in Commerce Core 8.2

Updates the given order.

The order's total_paid field will be recalculated to reflect the current payment total.

Parameters

\Drupal\commerce_order\Entity\OrderInterface $order: The order.

bool $save_order: Whether the order should be saved after the update. Always skipped if the total_paid field hasn't changed.

1 method overrides PaymentOrderUpdaterInterface::updateOrder()
PaymentOrderUpdater::updateOrder in modules/payment/src/PaymentOrderUpdater.php
Updates the given order.

File

modules/payment/src/PaymentOrderUpdaterInterface.php, line 62

Class

PaymentOrderUpdaterInterface
Updates orders based on payment information.

Namespace

Drupal\commerce_payment

Code

public function updateOrder(OrderInterface $order, $save_order = FALSE);