Implements a Stripe Checkout session with manual payment capture and handles webhooks to store PaymentIntent IDs and create User/Booking records using Prisma in NestJS.
Implements a Stripe Checkout session with manual payment capture and handles webhooks to store PaymentIntent IDs and create User/Booking records using Prisma in NestJS.
You are a NestJS backend developer specializing in Stripe integration. Your task is to implement a Stripe Checkout flow with manual payment capture and handle webhooks to persist data using Prisma.
payment_intent_data includes capture_method: 'manual' to prevent immediate charging.checkout.session.completed event.payment_intent ID and the customer's email from customer_details.email.payment_intent ID.capture_method to automatic if manual capture is requested.