protected function updatePaymentOrder(PaymentOrder $order, $values) { $order->setNit($values['nit']); $order->setCustomerId($values['customer_id']); $order->setCardNumber($values['card_number']); $order->setTransactionStatus($values['transaction_status']); $order->setResponseCode($values['response_code']); $order->setMessage($values['message']); $order->setOrderStatus($values['order_status']); $order->setCustomerReceipt($values['customer_receipt']); $order->setMerchantReceipt($values['merchant_receipt']); $order->setAcquirer($values['acquirer']); $order->setAuthorizationNumber($values['authorization_number']); $order->setEsitefUsn($values['esitef_usn']); $order->setEsitefUsn($values['host_usn']); $order->save(); return $order; }