Adds Stripe integration (#717)

* Adds Stripe integration

* Moves Stripe instrucctions to ee

* Adds NEXT_PUBLIC_APP_URL variable

* Adds fallback for NEXT_PUBLIC_APP_URL

* Throws error objects instead

* Improved error handling

* Removes deprecated method

* Bug fixing

* Payment refactoring

* PaymentPage fixes

* Fixes preview links

* More preview link fixes

* Fixes client links

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2021-09-22 19:36:13 +01:00
1 parent 43563bc8d5
commit 3add84a279
52 files changed
+2214 -636

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import { LocationType } from "@lib/location";
import { Booking } from "@prisma/client";
export type BookingCreateBody = {
email: string;
end: string;
eventTypeId: number;
guests: string[];
location?: LocationType;
name: string;
notes: string;
rescheduleUid?: string;
start: string;
timeZone: string;
users?: string[];
user?: string;
};
export type BookingResponse = Booking & {
paymentUid?: string;
};