Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计提醒

chargebee-integrationChargebee 集成

Agent Skill

chargebee-integration 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,504

周安装

146

GitHub Stars

4

下载量

1,168
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:chargebee-integration(Chargebee 集成)
来源仓库:https://github.com/chargebee/ai
仓库路径:skills/chargebee-integration
安装命令:
npx skills add https://github.com/chargebee/ai --skill chargebee-integration
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/chargebee/ai --skill chargebee-integration

简介

Chargebee Integration 技能帮助你在应用或网站中集成 Chargebee 计费系统,支持多种框架和 SDK。

  • 适用于 Laravel Cashier、官方 SDK 及 REST API 场景,优先推荐框架级集成方式。
  • 通过 npx 命令从 GitHub 安装,结合项目 README 了解具体配置与最佳实践。
  • 建议确认权限范围、维护状态,以及是否涉及联网、命令执行或文件读写操作。
  • 注意优先采用检索增强推理而非预训练模型进行集成开发。

SKILL.md

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

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.

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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.41%
按下载量换算449

Claude

26.71%
按下载量换算312

Cursor

18.56%
按下载量换算217

Gemini CLI

9.84%
按下载量换算115

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills