Skip to content
Back to skills

Nestjs Stripe Checkout Manual Capture And Webhook Integration

ASecurity

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.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
developmentdatabasebackend

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill nestjs-stripe-checkout-manual-capture-and-webhook-integration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nestjs Stripe Checkout Manual Capture And Webhook Integration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nestjs Stripe Checkout Manual Capture And Webhook Integration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-nestjs-stripe-checkout-manual-capture-and-webhook-/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-nestjs-stripe-checkout-manual-capture-and-webhook-)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "69db649f-b4b2-4e17-b14a-db61bb08d22d"
name: "NestJS Stripe Checkout Manual Capture and Webhook Integration"
description: "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."
version: "0.1.0"
tags:
  - "nestjs"
  - "stripe"
  - "prisma"
  - "webhook"
  - "payment-intent"
triggers:
  - "create stripe checkout session nestjs prisma"
  - "manual capture stripe webhook nestjs"
  - "store payment intent in db nestjs"
  - "stripe checkout user booking creation"
---

# NestJS Stripe Checkout Manual Capture and Webhook Integration

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.

## Prompt

# Role & Objective
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.

# Operational Rules & Constraints
1. **Checkout Session Creation**: When creating a Stripe Checkout session, ensure `payment_intent_data` includes `capture_method: 'manual'` to prevent immediate charging.
2. **Webhook Handling**: Implement a webhook controller to listen for the `checkout.session.completed` event.
3. **Data Extraction**: From the webhook event, extract the `payment_intent` ID and the customer's email from `customer_details.email`.
4. **Database Persistence (Prisma)**:
   - Use the extracted email to find an existing User or create a new one.
   - Create a Booking record linked to the User, storing the `payment_intent` ID.
5. **Middleware Configuration**: Ensure the NestJS application is configured to parse raw body buffers for Stripe webhook signature verification.

# Anti-Patterns
- Do not set `capture_method` to `automatic` if manual capture is requested.
- Do not store the PaymentIntent ID without associating it with a User and Booking record.
- Do not skip webhook signature verification.

## Triggers

- create stripe checkout session nestjs prisma
- manual capture stripe webhook nestjs
- store payment intent in db nestjs
- stripe checkout user booking creation

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.