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]
        ));
    }