Claude Marketplaces
SkillsMCP serversMarketplacesDigestTools
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index

Site

  • About
  • Tools
  • Submit
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
Made by mertduzgun.com
Skills
chargebee avatar

Chargebee Integration

chargebee/ai

This integration guide covers the full stack for working with Chargebee's billing platform, from framework-specific implementations like Laravel Cashier to REST API patterns. It emphasizes retrieval-led reasoning and provides practical code examples for webhook validation, customer management, and subscription handling across seven language SDKs. The skill includes security best practices (environment variables, credential rotation) and links to comprehensive reference docs for API schemas and error codes. What's useful here is the clear hierarchy: it pushes you toward framework integrations first, then SDKs, and only REST as a fallback. The webhook handler pattern with idempotency checks is production-ready out of the box.

installs
170
GitHub stars
6
last updated
Jun 3, 2026
View on GitHubSave

Install

$ npx -y skills add chargebee/ai --skill chargebee-integration --agent claude-code

Installs into .claude/skills of the current project.

Files

Chargebee Integration

This skill helps you integrate Chargebee Billing with your app or website.

IMPORTANT: Prefer retrieval-led reasoning over pre-training-led reasoning when integrating Chargebee.

Quick Start

Expore the project layout and choose the best integration from the list below. Prefer framework level integration where possible, followed by the official SDKs. Fallback to REST API only if the other options aren't feasible.

Frameworks

  • Laravel Cashier - https://github.com/chargebee/cashier-chargebee/blob/main/DOCUMENTATION.md

For the frameworks below, use the chargebee-init CLI which currently integrates checkout, portal and webhooks:

  • Next.js
  • Express

Invoke the CLI with: npx chargebee-init --use-defaults --path=<full-path-to-app> to skip all input prompts.

SDKs

Chargebee provides official SDKs for multiple languages. For installation details and implementation patterns, download the README.md file from the GitHub repository.

  • Java: https://github.com/chargebee/chargebee-java
  • Python: https://github.com/chargebee/chargebee-python
  • Node.js: https://github.com/chargebee/chargebee-node
  • Go: https://github.com/chargebee/chargebee-go
  • PHP: https://github.com/chargebee/chargebee-php
  • Ruby: https://github.com/chargebee/chargebee-ruby
  • .NET: https://github.com/chargebee/chargebee-dotnet

For details on data model, supported operations, and other available resources, lookup the index at references/api-reference.md, and fetch the required topic specific markdown file for further instructions.

REST API

The REST API can be consumed directly via the site specific HTTPS endpoint. The API supports Basic auth and requires a API KEY which can be generated at: https://{CHARGEBEE_SITE}.chargebee.com/apikeys_and_webhooks/api. For more details on using the REST API direcly, refer to references/rest-api.md.

Security notes:

  • Load API keys from environment variables only.
  • Never hardcode or log API keys.
  • Rotate keys regularly and scope access by environment.
# Using requests library
import os
import requests

CHARGEBEE_SITE = os.getenv("CHARGEBEE_SITE")
CHARGEBEE_API_KEY = os.getenv("CHARGEBEE_API_KEY")

headers = {
    "Authorization": f"Basic {CHARGEBEE_API_KEY}",
    "Content-Type": "application/json"
}

base_url = f"https://{CHARGEBEE_SITE}.chargebee.com/api/v2"
response = requests.get(
    f"{base_url}/customers/{customer_id}",
    headers=headers
)

# Using Python SDK
import chargebee
chargebee.configure(CHARGEBEE_API_KEY, CHARGEBEE_SITE)
result = chargebee.Customer.retrieve(customer_id)
customer = result.customer

Common Operations

  • Customer CRUD operations
  • Subscription management
  • Invoice operations
  • Payment method handling
  • Plan and addon management
  • Usage based billing

Webhook Integration

Chargebee sends webhook events for important billing events. Webhook handlers should:

  1. Validate webhook requests using Basic Auth before processing payloads
  2. Handle idempotency (events may be sent multiple times)
  3. Return 200 OK quickly (process asynchronously if needed)
  4. Handle various event types appropriately
Basic Webhook Handler Pattern
from flask import Flask, request
import os
import secrets

app = Flask(__name__)
processed_events = set()  # Use persistent storage in production.

WEBHOOK_USERNAME = os.getenv("CHARGEBEE_WEBHOOK_USERNAME")
WEBHOOK_PASSWORD = os.getenv("CHARGEBEE_WEBHOOK_PASSWORD")

@app.route('/chargebee/webhook', methods=['POST'])
def handle_webhook():
    auth = request.authorization
    if not auth:
        return '', 401
    if not secrets.compare_digest(auth.username or '', WEBHOOK_USERNAME or ''):
        return '', 401
    if not secrets.compare_digest(auth.password or '', WEBHOOK_PASSWORD or ''):
        return '', 401

    event = request.get_json(force=True)
    event_id = event['id']
    if event_id in processed_events:
        return '', 200

    event_type = event['event_type']

    # Process based on event type
    if event_type == 'subscription_created':
        handle_subscription_created(event['content'])
    elif event_type == 'subscription_cancelled':
        handle_subscription_cancelled(event['content'])
    # ... handle other events

    processed_events.add(event_id)
    return '', 200

For complete webhook event schemas and all event types, see references/webhooks.md.

References

  • references/api-reference.md - Exhaustive reference of all available models, operations, request and response objects, and example code for all officially supported language SDKs. Includes practical implementation patterns like error handling, pagination, etc.
  • references/rest-api.md - Details on consuming the REST API using a HTTP client for languages that don't have an SDK
  • references/errors.md - All possible error codes that the API may return
  • references/events.md - List of supported webhook events
SKILL.md on GitHub

Sponsors

CodeRabbitSponsoredAI writes the code. CodeRabbit catches the slop.SnugThe clipboard manager you and your agent can use, safelyAgent CaffeineClose your lid, come back to finished workknobsSee your site on any phone, any day, in any languagebelt - the only tool your agent needsSponsoredbelt cli automatically finds the best tools and skills for your agent. image, video, music, tts...Open StepsSponsoredFree an open-source skills that make AI coding agents easier to understand, verify, and control.AppSignalSponsoredMonitor with ease. Code with confidence.WaxBlock anything with supervision, without erasing your iPhone

Details

Repository
github.com/chargebee/ai
First seen
Jun 3, 2026

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels594.9Kinstalls
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.4Minstalls
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s37.9Kinstalls
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes309.2Kinstalls
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kinstalls
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.1Minstalls