{"enrichment":{"faq":[{"a":"Stripe enables payment processing in Next.js by combining server-side payment intent creation with client-side checkout forms. Use Stripe's Node.js library on your API routes to create payment intents securely, then render Stripe Elements or Stripe.js on the frontend to collect card details. This separation ensures your secret keys never reach the browser while maintaining PCI compliance through Stripe's hosted tokenization.","q":"How do I integrate Stripe payments in Next.js?"},{"a":"Stripe webhook handling requires verifying webhook signatures using your endpoint secret to ensure authenticity, then processing events idempotently so duplicate deliveries don't cause issues. Store webhook event IDs to detect replays, handle asynchronous processing gracefully, and return a 2xx status immediately to acknowledge receipt. This prevents Stripe from retrying failed webhooks and ensures reliable event processing.","q":"What are stripe webhook handling best practices?"},{"a":"Stripe subscription management involves creating customers via the Stripe API, attaching payment methods, then creating subscriptions with recurring billing intervals. Stripe handles automatic charge scheduling and manages the subscription lifecycle. Use webhooks to listen for subscription events like customer.subscription.updated and invoice.payment_succeeded to sync state with your database and trigger application logic.","q":"How do I set up Stripe subscription management?"},{"a":"Stripe's payment intent API requires calling stripe.paymentIntents.create() on your server with the amount in cents, currency, and customer ID. Return the client secret to your frontend, where Stripe.js uses it to confirm payment. Include idempotency keys to ensure retries don't create duplicate intents, and handle the response status to determine next steps like 3D Secure authentication.","q":"How should I create a payment intent with the Stripe API?"},{"a":"Stripe payment failures require checking the payment intent status and error codes to determine the cause\u2014declined cards, expired credentials, or authentication failures. Implement retry logic with exponential backoff for transient errors, display user-friendly error messages for declined cards, and log failures for debugging. Use webhooks to monitor charge.failed events and notify customers of issues affecting their subscriptions.","q":"What's the best way to handle Stripe payment failures?"},{"a":"Stripe webhook signature verification uses the stripe.webhooks.constructEvent() method with your raw request body, signature header, and endpoint secret. This ensures the webhook came from Stripe and wasn't tampered with. In TypeScript, type the event object using Stripe's event types, then handle specific event types like payment_intent.succeeded. Always verify before processing to maintain security.","q":"How do I verify Stripe webhook signatures in TypeScript?"}],"shadow_tags":["payment-gateway","recurring-billing","pci-compliance","webhook-events","server-side-processing","card-payments","subscription-lifecycle","error-recovery","test-mode-development","idempotent-operations"],"summary_rewrite":"Master Stripe payment integration across Next.js and React with server-side payment intent creation, client-side checkout forms, and subscription lifecycle management. This skill covers webhook handling for reliable event processing, customer management, and security practices including signature verification and secret key protection."},"files":[{"bytes":6374,"path":"stripe/SKILL.md","sha256":"c40d6fded9364bf85133e53bf6d18f80df248d07ea8abe9b6c90a8e4751fb24e","url":"https://skillfed.io/files/Mindrally/skills/stripe/0e613aa1/SKILL.md"}],"id":"Mindrally/skills/stripe","links":{"html":"https://skillfed.io/Mindrally/skills/stripe","md":"https://skillfed.io/Mindrally/skills/stripe.md","repo":"https://github.com/Mindrally/skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":30,"language":null,"last_updated":"2026-06-09","license":"Apache-2.0","name":"stripe","publisher":"Mindrally","stars":202},"relations":{"similar":[{"id":"miles990/claude-software-skills/e-commerce"},{"id":"alinaqi/maggy/web-payments"},{"id":"finsilabs/awesome-ecommerce-skills/stripe-integration"},{"id":"travisjneuman/.claude/payment-integration"},{"id":"jezweb/claude-skills/stripe-payments"},{"id":"dadbodgeoff/drift/stripe-integration"},{"id":"miles990/claude-software-skills/saas-platforms"},{"id":"oakoss/agent-skills/stripe-integration"},{"id":"rebyteai-template/rebyte-skills/stripe-skill"},{"id":"ScientiaCapital/skills/stripe-stack-skill"}]},"slug":{"owner":"Mindrally","repo":"skills","skill":"stripe"},"version":"0e613aa1"}
