stripe-integration

Implement Stripe payment processing with checkout sessions, subscriptions, webhooks, and refunds.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill stripe-integration-sanketadlak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stripe-integration
Source: https://github.com/SanketAdlak/PDMProjectDesign/tree/main/.agents/skills/stripe-integration
Command: npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill stripe-integration-sanketadlak

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires stripe, flask.

What problem does it solve? Integrating payment processing requires navigating PCI compliance, checkout flows, subscription billing, and webhook security, which is error-prone when built from scratch. This Skill provides tested implementation patterns for the full Stripe payment lifecycle. ## Core Features & Use Cases - Checkout & Payment Flows: Create hosted Checkout Sessions, embedded Payment Elements, and Payment Intents for one-time payments with proper error handling. - Subscriptions & Customer Management: Build recurring billing with products, prices, subscriptions, customer records, and self-service billing portals. - Secure Webhooks & Refunds: Verify webhook signatures, handle events idempotently, process refunds, and respond to disputes. - Use Case: A SaaS team needs to launch monthly subscriptions with SCA-compliant checkout for European customers. Use this Skill to create a subscription Checkout Session, set up a signed webhook endpoint for lifecycle events, and add a customer portal for plan management. ## Quick Start Ask the AI to create a Stripe checkout session for a monthly subscription with a secure webhook endpoint that handles payment success and failure events.

Frequently Asked Questions about stripe-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Stripe checkout session in Python?

Create a checkout session by calling stripe.checkout.Session.create with line_items, mode, success_url, and cancel_url. Set mode to 'payment' for one-time charges or 'subscription' for recurring billing, then redirect the user to the returned session.url.

Should I use Checkout Sessions or Payment Intents for Stripe payments?

Checkout Sessions are recommended for most integrations because they handle taxes, discounts, shipping, and saved payment methods with lower maintenance burden. Payment Intents give bespoke control but require you to calculate final amounts yourself and use Stripe.js for PCI compliance.

How do I verify Stripe webhook signatures?

Verify webhooks by calling stripe.Webhook.construct_event with the raw request payload, the Stripe-Signature header, and your endpoint secret. This raises SignatureVerificationError for invalid signatures, preventing forged events from being processed.

Does Stripe support saving payment methods for future charges?

Yes, use Setup Intents to collect a payment method without charging, then attach it to a customer with stripe.PaymentMethod.attach. Set it as the default via the customer's invoice_settings for future subscription or off-session payments.

Why is my Stripe webhook processing duplicate events?

Stripe retries webhooks when your endpoint fails or times out, causing duplicate deliveries. Handle events idempotently by recording processed event IDs and skipping events already processed before executing your handler logic.

How do I test Stripe payments without real cards?

Use test mode API keys with Stripe's test card numbers such as 4242424242424242 for success or 4000000000000002 for declines. You can also confirm payment intents with test payment methods like pm_card_visa.