diff --git a/app/Ninja/PaymentDrivers/BasePaymentDriver.php b/app/Ninja/PaymentDrivers/BasePaymentDriver.php index 14cf361462d0..89a0c3692932 100644 --- a/app/Ninja/PaymentDrivers/BasePaymentDriver.php +++ b/app/Ninja/PaymentDrivers/BasePaymentDriver.php @@ -710,6 +710,11 @@ class BasePaymentDriver $license->product_id = $productId; $license->save(); + // Add the license key to the invoice content + $invoiceItem = $payment->invoice->invoice_items->first(); + $invoiceItem->notes .= "\n\n##{$license->license_key}"; + $invoiceItem->save(); + // Add the license key to the redirect URL $key = 'redirect_url:' . $payment->invitation->invitation_key; $redirectUrl = session($key); diff --git a/resources/views/partials/white_label_expired.blade.php b/resources/views/partials/white_label_expired.blade.php new file mode 100644 index 000000000000..dfea18db1776 --- /dev/null +++ b/resources/views/partials/white_label_expired.blade.php @@ -0,0 +1,15 @@ +