public function setItemOrderPaymentName(&$item, $payment_model)
    {
        if (isset($item['payment'])) {
            $data = $payment_model->get($item['payment']);
            $item['payment_name'] = empty($data['title']) ? 'Unknown' : $data['title'];
        }
    }
public function setItemOrderPaymentName(&$item, $payment_model)
    {
        if (isset($item['payment'])) {
            $data = $payment_model->get($item['payment']);
            $item['payment_name'] = empty($data['title']) ? 'Unknown' : $data['title'];
        }
    }
public function setItemOrderPaymentName ( & $ item , $ payment_model ) { if ( isset ( $ item [ 'payment' ] ) ) { $ data = $ payment_model -> get ( $ item [ 'payment' ] ) ; $ item [ 'payment_name' ] = empty ( $ data [ 'title' ] ) ? 'Unknown' : $ data [ 'title' ] ; } }
Adds "payment_name" key
@param array $item
@param \gplcart\core\models\Payment $payment_model
Adds payment_name key