public function PaymentOrderProcessor::process in Commerce Core 8.2
Processes an order.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The order.
Overrides OrderProcessorInterface::process
File
- modules/
payment/ src/ PaymentOrderProcessor.php, line 33
Class
- PaymentOrderProcessor
- Recalculates the order's total_paid field.
Namespace
Drupal\commerce_paymentCode
public function process(OrderInterface $order) {
if ($this->paymentOrderUpdater
->needsUpdate($order)) {
$this->paymentOrderUpdater
->updateOrder($order);
}
}