feat: Add more metadata to Stripe transaction (#11221)

* Add booker info, event type title, and organizer info into Stripe metadata

* Add back bookingTitle in addition to eventTitle

* Remove .tool-versions

* Fix typo

---------

Co-authored-by: alannnc <[email protected]>
This commit is contained in:
Kevin Crimiandalannnc authored and GitHub committed 2023-09-14 04:10:42 +00:00
1 parent efcfd7bb9b
commit 3a05ae6f74
4 files changed
+27 -6

No files matched your search

+5 -1
View File
@@ -13,9 +13,13 @@ export interface IAbstractPaymentService {
create(
payment: Pick<Prisma.PaymentUncheckedCreateInput, "amount" | "currency">,
bookingId: Booking["id"],
userId: Booking["userId"],
username: string | null,
bookerName: string | null,
bookerEmail: string,
paymentOption: PaymentOption,
eventTitle?: string
eventTitle?: string,
bookingTitle?: string
): Promise<Payment>;
/* This method is to collect card details to charge at a later date ex. no-show fees */
collectCard(