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
@@ -129,6 +129,7 @@ const BookingPage = ({
|
||||
paymentUid,
|
||||
date,
|
||||
name: attendees[0].name,
|
||||
email: attendees[0].email,
|
||||
absolute: false,
|
||||
})
|
||||
);
|
||||
|
||||
@@ -47,7 +47,7 @@ type States =
|
||||
export default function PaymentComponent(props: Props) {
|
||||
const { t, i18n } = useLocale();
|
||||
const router = useRouter();
|
||||
const { name, date } = router.query;
|
||||
const { email, name, date } = router.query;
|
||||
const [state, setState] = useState<States>({ status: "idle" });
|
||||
const stripe = useStripe();
|
||||
const elements = useElements();
|
||||
@@ -86,6 +86,7 @@ export default function PaymentComponent(props: Props) {
|
||||
date,
|
||||
type: props.eventType.id,
|
||||
user: props.user.username,
|
||||
email,
|
||||
name,
|
||||
bookingId: props.bookingId,
|
||||
};
|
||||
|
||||
@@ -80,6 +80,7 @@ export async function handlePayment(
|
||||
link: createPaymentLink({
|
||||
paymentUid: payment.uid,
|
||||
name: booking.user?.name,
|
||||
email: booking.user?.email,
|
||||
date: booking.startTime.toISOString(),
|
||||
}),
|
||||
},
|
||||
|
||||
@@ -705,7 +705,7 @@ const schema = z.object({
|
||||
recur: z.string().optional(),
|
||||
location: z.string().optional(),
|
||||
eventSlug: z.string().default("15min"),
|
||||
eventName: z.string(),
|
||||
eventName: z.string().default(""),
|
||||
bookingId: strToNumber,
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user