agentsclimarketplace

Nestjs stripe checkout manual capture and webhook integration

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8/nestjs-stripe-checkout-manual-capture-and-webhook-integration

AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill nestjs-stripe-checkout-manual-capture-and-webhook-integration

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its author says it does

Copied from the file, not written here

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.

SKILL.md

2.2 KB, as published. Nobody here has run it

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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.