# Stripe Payments API

> Integrating Stripe payments, managing subscription billing checkout sessions, and validation signatures on webhooks.

- Skill: `lord1egypt/stripe-payments-api` (Agent Skill)
- Install (CLI): `npx skillmds@latest add lord1egypt/stripe-payments-api`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lord1egypt/stripe-payments-api/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- License: MIT license
- Author: Lord1Egypt (https://skillmd.com/u/lord1egypt)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/lord1egypt/stripe-payments-api

---


# Stripe Payments Api

## Overview
Stripe is a suite of APIs powering online payment processing and commerce solutions.

## When to Use This Skill
Use to implement e-commerce checkouts or software-as-a-service subscription pricing models.

## Quick Start (with runnable code examples)

```python
import stripe

stripe.api_key = "sk_test_..."

def create_checkout():
    session = stripe.checkout.Session.create(
        payment_method_types=['card'],
        line_items=[{
            'price_data': {
                'currency': 'usd',
                'product_data': {'name': 'Agent subscription'},
                'unit_amount': 2000,
            },
            'quantity': 1,
        }],
        mode='payment',
        success_url='https://example.com/success',
        cancel_url='https://example.com/cancel',
    )
    return session.url
```

## Advanced Usage
Handle Stripe webhook event signature verification (`stripe.Webhook.construct_event`) and customer portals.

## Key References
- [Stripe API Docs](https://stripe.com/docs/api)

## Dependencies
- stripe>=8.0.0

