Fixes paid bookings

# Conflicts:
#	apps/web/ee/components/stripe/Payment.tsx
This commit is contained in:
zomars committed 2022-05-24 19:23:47 -06:00
1 parent db784f8333
commit 9fba3f3767
5 files changed
+8 -4

No files matched your search

+3 -2
View File
@@ -25,12 +25,13 @@ export function createPaymentLink(opts: {
paymentUid: string;
name?: Maybe<string>;
date?: Maybe<string>;
email?: Maybe<string>;
absolute?: boolean;
}): string {
const { paymentUid, name, date, absolute = true } = opts;
const { paymentUid, name, email, date, absolute = true } = opts;
let link = "";
if (absolute) link = process.env.NEXT_PUBLIC_WEBSITE_URL!;
const query = stringify({ date, name });
const query = stringify({ date, name, email });
return link + `/payment/${paymentUid}?${query}`;
}