Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: remove customer name

Marc Seitz058ed871f951
diff --git a/ee/features/billing/renewal-reminder/emails/subscription-renewal-reminder.tsx b/ee/features/billing/renewal-reminder/emails/subscription-renewal-reminder.tsx
index 41d69410..3230f2b2 100644
--- a/ee/features/billing/renewal-reminder/emails/subscription-renewal-reminder.tsx
+++ b/ee/features/billing/renewal-reminder/emails/subscription-renewal-reminder.tsx
@@ -14,13 +14,11 @@ import {
import { Footer } from "@/components/emails/shared/footer";
interface SubscriptionRenewalReminderEmailProps {
- customerName: string | null;
renewalDate: string;
isOldAccount: boolean;
}
const SubscriptionRenewalReminderEmail = ({
- customerName,
renewalDate,
isOldAccount,
}: SubscriptionRenewalReminderEmailProps) => {
@@ -37,7 +35,6 @@ const SubscriptionRenewalReminderEmail = ({
<Text className="text-2xl font-bold">
Is your payment information up to date?
</Text>
- <Text>Hi{customerName && ` ${customerName}`},</Text>
<Text>
Another year has come and gone, which means your annual Papermark
subscription will automatically renew on {renewalDate}.
diff --git a/ee/features/billing/renewal-reminder/lib/send-subscription-renewal-reminder.ts b/ee/features/billing/renewal-reminder/lib/send-subscription-renewal-reminder.ts
index fb40ec10..c09ba149 100644
--- a/ee/features/billing/renewal-reminder/lib/send-subscription-renewal-reminder.ts
+++ b/ee/features/billing/renewal-reminder/lib/send-subscription-renewal-reminder.ts
@@ -3,15 +3,13 @@ import SubscriptionRenewalReminderEmail from "@/ee/features/billing/renewal-remi
import { sendEmail } from "@/lib/resend";
export const sendSubscriptionRenewalReminderEmail = async (params: {
- customerName: string | null;
customerEmail: string;
renewalDate: string;
isOldAccount: boolean;
}) => {
- const { customerName, customerEmail, renewalDate, isOldAccount } = params;
+ const { customerEmail, renewalDate, isOldAccount } = params;
const emailTemplate = SubscriptionRenewalReminderEmail({
- customerName,
renewalDate,
isOldAccount,
});
diff --git a/ee/stripe/webhooks/invoice-upcoming.ts b/ee/stripe/webhooks/invoice-upcoming.ts
index d47325d0..afeb3fa8 100644
--- a/ee/stripe/webhooks/invoice-upcoming.ts
+++ b/ee/stripe/webhooks/invoice-upcoming.ts
@@ -43,7 +43,6 @@ export async function invoiceUpcoming(
}
const customerEmail = invoice.customer_email;
- const customerName = invoice.customer_name;
if (!customerEmail) {
await log({
@@ -65,7 +64,6 @@ export async function invoiceUpcoming(
// send email immediately
await sendSubscriptionRenewalReminderEmail({
customerEmail,
- customerName,
renewalDate: formattedRenewalDate,
isOldAccount,
});