stripe-integration
Qué hace
Esta herramienta te ayuda a añadir pagos en línea a tu web o app usando Stripe. Te permite aceptar pagos únicos, configurar suscripciones y gestionar el proceso de forma segura.
Cuándo usarla
- ✓Cuando quieres vender productos o servicios en línea.
- ✓Al crear un sistema de suscripciones para tus clientes.
- ✓Para montar un proceso de compra seguro en tu web.
Link de la skill
https://github.com/wshobson/agents/blob/main/plugins/payment-processing/skills/stripe-integration/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Cómo configuro los pagos de mi tienda en línea con Stripe?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La herramienta se conecta con Stripe para procesar los pagos. Puede crear páginas de pago, gestionar suscripciones y avisarte del estado de los pagos.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Stripe Integration
Master Stripe payment processing integration for robust, PCI-compliant payment flows including checkout, subscriptions, webhooks, and refunds.
When to Use This Skill
- Implementing payment processing in web/mobile applications
- Setting up subscription billing systems
- Handling one-time payments and recurring charges
- Processing refunds and disputes
- Managing customer payment methods
- Implementing SCA (Strong Customer Authentication) for European payments
- Building marketplace payment flows with Stripe Connect
Core Concepts
1. Payment Flows
Checkout Sessions
- Recommended for most integrations
- Supports all UI paths:
- Stripe-hosted checkout page
- Embedded checkout form
- Custom UI with Elements (Payment Element, Express Checkout Element) using
ui_mode='custom'
- Provides built-in checkout capabilities (line items, discounts, tax, shipping, address collection, saved payment methods, and checkout lifecycle events)
- Lower integration and maintenance burden than Payment Intents
Payment Intents (Bespoke control)
- You calculate the final amount with taxes, discounts, subscriptions, and currency conversion yourself.
- More complex implementation and long-term maintenance burden
- Requires Stripe.js for PCI compliance
Setup Intents (Save Payment Methods)
- Collect payment method without charging
- Used for subscriptions and future payments
- Requires customer confirmation
2. Webhooks
Critical Events:
payment_intent.succeeded: Payment completedpayment_intent.payment_failed: Payment failedcustomer.subscription.updated: Subscription changedcustomer.subscription.deleted: Subscription canceledcharge.refunded: Refund processedinvoice.payment_succeeded: Subscription payment successful
3. Subscriptions
Components:
- Product: What you're selling
- Price: How much and how often
- Subscription: Customer's recurring payment
- Invoice: Generated for each billing cycle
4. Customer Management
- Create and manage customer records
- Store multiple payment methods
- Track customer metadata
- Manage billing details
Quick Start
import stripe
stripe.api_key = "sk_test_..."
# Create a checkout session
session = stripe.checkout.Session.create(
line_items=[{
'price_data': {
'currency': 'usd',
'product_data': {
'name': 'Premium Subscription',
},
'unit_amount': 2000, # $20.00
'recurring': {
'interval': 'month',
},
},
'quantity': 1,
}],
mode='subscription',
success_url='https://yourdomain.com/success?session_id={CHECKOUT_SESSION_ID}',
cancel_url='https://yourdomain.com/cancel'
)
# Redirect user to session.url
print(session.url)
Detailed patterns and worked examples
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
Testing
# Use test mode keys
stripe.api_key = "sk_test_..."
# Test card numbers
TEST_CARDS = {
'success': '4242424242424242',
'declined': '4000000000000002',
'3d_secure': '4000002500003155',
'insufficient_funds': '4000000000009995'
}
def test_payment_flow():
"""Test complete payment flow."""
# Create test customer
customer = stripe.Customer.create(
email="test@example.com"
)
# Create payment intent
intent = stripe.PaymentIntent.create(
amount=1000,
automatic_payment_methods={
'enabled': True
},
currency='usd',
customer=customer.id
)
# Confirm with test card
confirmed = stripe.PaymentIntent.confirm(
intent.id,
payment_method='pm_card_visa' # Test payment method
)
assert confirmed.status == 'succeeded'
Preguntas frecuentes
¿Qué es el cumplimiento PCI?
Es un conjunto de normas que aseguran que los datos de pago de los clientes se manejan de forma segura.
¿Cuál es la diferencia entre Checkout Sessions y Payment Intents?
Checkout Sessions son más fáciles de usar y se encargan de muchas cosas por ti. Payment Intents ofrecen más control, pero requieren más trabajo.
¿Qué son los Webhooks?
Son notificaciones automáticas que Stripe envía a tu sistema cuando ocurre algo importante, como que un pago se complete o que una suscripción se cancele.
Detalles
Descripción original del autor
Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.
repo: wshobson/agents
Popularidad
- Estrellas en GitHub
- 41 mil
- Posición en el ranking
- #6747
- Licencia
- MIT
- Actualizada
- 15/10/2026
Comentarios
- …
Más skills de este repositorio
screen-reader-testing
41 milHace que tu agente pruebe sitios web con lectores de pantalla para comprobar que son accesibles.
wcag-audit-patterns
41 milAyuda a tu agente a auditar la accesibilidad de sitios web y a corregir problemas según las pautas WCAG.
multi-reviewer-patterns
41 milPermite a tu agente coordinar revisiones de código en paralelo, eliminando hallazgos duplicados y consolidando los informes.
parallel-debugging
41 milPermite a tu agente depurar problemas complejos con investigaciones en paralelo y análisis de causa raíz.
Skills parecidas
knowledge-automation
394 milAyuda a tu agente a configurar una tarea recurrente que añade contenido nuevo a tu bóveda de Knowledge según un horario, y después comprueba que la tarea funciona.
knowledge-source-ingest
394 milAyuda a tu agente a mantener al día una bóveda de Knowledge con elementos nuevos de canales de chat, fuentes o buzones, sin volver a añadir lo que ya tiene.
benchmark
280 milAyuda a tu agente a medir la velocidad y el rendimiento del código. Es útil para asegurar que todo vaya rápido y encontrar problemas de lentitud.