addressed issues regarding Stripe Payments

This commit is contained in:
Rajpreet0 2026-05-25 20:48:56 +02:00
parent 6359004609
commit 6752f8768a
10 changed files with 219 additions and 61 deletions

View file

@ -157,8 +157,8 @@ model CourseBooking {
paymentStatus String @default("pending") // "pending" | "paid" | "failed" | "refunded"
stripeSessionId String? @unique
stripePaymentIntentId String? @unique
amountPaid Float? // tatsächlich gezahlter Betrag in EUR
platformFee Float? // unsere Service-Fee in EUR
amountPaid Int? // tatsächlich gezahlter Betrag in Cents
platformFee Int? // unsere Service-Fee in Cents
course Course @relation(fields: [courseId], references: [id], onDelete: Cascade)
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
createdAt DateTime @default(now())