$orderId], $data )); } public function processPayment($order, $method) { return $order->update([ 'status' => 'paid', 'payment_method' => $method, 'paid_at' => now() ]); } }