sec-001 fixes (#2866) (#2867)

* sec-001 fixes (#2866)

* sec-001 fixes

* Typo

* Fixes paid bookings

# Conflicts:
#	apps/web/ee/components/stripe/Payment.tsx
This commit is contained in:
Omar López authored and GitHub committed 2022-05-24 19:29:29 -06:00
1 parent a48a164e71
commit 7548233a96
6 files changed
+54 -25

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}`;
}