public function renderInvoiceHtml(array $data)
    {
        $viewPath = ArrayHelper::getValue($data, 'invoiceView', '@vendor/yii2mod/yii2-cashier/views/invoice');

        return Yii::$app->controller->renderPartial($viewPath, array_merge(
            $data, ['invoice' => $this, 'user' => $this->user]
        ));
    }
public function renderInvoiceHtml(array $data)
    {
        $viewPath = ArrayHelper::getValue($data, 'invoiceView', '@vendor/yii2mod/yii2-cashier/views/invoice');

        return Yii::$app->controller->renderPartial($viewPath, array_merge(
            $data, ['invoice' => $this, 'user' => $this->user]
        ));
    }
public function renderInvoiceHtml ( array $ data ) { $ viewPath = ArrayHelper :: getValue ( $ data , 'invoiceView' , '@vendor/yii2mod/yii2-cashier/views/invoice' ) ; return Yii :: $ app -> controller -> renderPartial ( $ viewPath , array_merge ( $ data , [ 'invoice' => $ this , 'user' => $ this -> user ] ) ) ; }
Return invoice html

@param array $data

@return string
Return invoice html