Fixes paid bookings
# Conflicts: # apps/web/ee/components/stripe/Payment.tsx
This commit is contained in:
1 parent
db784f8333
commit
9fba3f3767
5 files changed
+8
-4
No files matched your search
@@ -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}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user