Payment Integration
Integrate payment processors securely
Building payment systems requires careful attention to security and edge cases. This skill provides proven patterns for Stripe, PayPal, and Square integration with PCI compliance built-in.
Descargar el ZIP de la skill
Subir en Claude
Ve a Configuración → Capacidades → Skills → Subir skill
Activa y empieza a usar
Pruébalo
Usando "Payment Integration". Create a Stripe checkout session for a product with ID prod_123 and price $49.99
Resultado esperado:
Server-side code creating a Stripe Checkout Session with line items, success URL, cancel URL, and metadata for order tracking. Returns session ID for client redirect.
Usando "Payment Integration". How do I verify Stripe webhook signatures in Node.js?
Resultado esperado:
Code example using stripe.webhooks.constructEvent with the raw request body, signature header, and webhook secret. Includes error handling for invalid signatures and explanation of why JSON middleware must be bypassed.
Auditoría de seguridad
SeguroThis is a prompt-only instructional skill with no executable code. Static analysis found 0 security issues with a risk score of 0/100. The skill provides security best practices for payment integration including webhook signature verification, PCI compliance guidance, and idempotency patterns. No malicious patterns detected.
Puntuación de calidad
Lo que puedes crear
E-commerce Checkout Integration
Build secure checkout flows with Stripe Elements or PayPal buttons, including cart total validation and order confirmation webhooks.
Subscription Billing System
Implement recurring payment logic with proper handling of trial periods, proration, failed payment retries, and cancellation flows.
Payment Webhook Handler
Create robust webhook endpoints that verify signatures, ensure idempotency, and handle payment events like successful charges and disputes.
Prueba estos prompts
Help me create a basic Stripe checkout integration for my e-commerce site. I need a payment form using Stripe Elements, server-side payment intent creation, and webhook handling for successful payments.
I need to implement a subscription plan with a 14-day free trial using Stripe Billing. Show me how to create the subscription, handle the trial period, and process the first payment when the trial ends.
Create a secure webhook endpoint for Stripe that verifies signatures, checks for duplicate events, and handles payment_intent.succeeded and charge.disputed events. Include database storage for processed event IDs.
I need to support both Stripe and PayPal checkout options. Design an abstraction layer that allows switching between providers, with unified payment confirmation handling and error reporting.
Mejores prácticas
- Always verify webhook signatures using official SDK methods before processing any payment events
- Implement idempotency by storing processed event IDs to prevent duplicate order fulfillment
- Use tokenization (Stripe Elements, PayPal SDK) to avoid handling raw card data and reduce PCI scope
Evitar
- Never store raw credit card numbers, CVV codes, or full magnetic stripe data in your database
- Do not skip webhook signature verification even in development environments
- Avoid processing webhooks synchronously for expensive operations - return 200 OK quickly then process asynchronously
Preguntas frecuentes
What payment processors does this skill support?
Do I need PCI compliance to use this skill?
How do I test payment integrations without charging real cards?
What happens if a webhook is delivered multiple times?
Can this skill handle refunds and disputes?
How do I handle subscription plan changes and proration?
Detalles del desarrollador
Autor
sickn33Licencia
MIT
Repositorio
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/payment-integrationRef.
main
Estructura de archivos
📄 SKILL.md