Community程式設計與開發github.com

Braintree 自動化

透過 Stripe 相容工具自動化管理 Braintree 付款處理,包括客戶、訂閱、付款方式及交易。

Braintree 自動化 是什麼?

此技能可透過 Composio 平台,將 Braintree 付款工作流程路由至 Stripe 工具組,實現統一的付款管理。它支援管理客戶(建立、查詢、搜尋)、訂閱(建立、列出、檢視細項)、付款方式(列出、附加)以及餘額交易查詢。使用者需連接 Rube MCP 伺服器,並確保 stripe 工具組有活躍連線。主要工具包括 STRIPE_CREATE_CUSTOMER、STRIPE_CREATE_SUBSCRIPTION、STRIPE_ATTACH_PAYMENT_METHOD 等。常見陷阱包含搜尋查詢語法需使用欄位前綴、訂閱付款方式在試用期可選、付款方式須為分離狀態才能附加,以及所有金額以最小貨幣單位(如美分)計算。本技能適合需要在統一介面下同時管理 Stripe 與 Braintree 付款流程的開發者與 AI 代理。

相容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/composio-skills/braintree-automation

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Braintree 自動化 是做什麼的?

透過 Stripe 相容工具自動化付款處理作業,包括管理客戶、訂閱、付款方式、餘額交易及客戶搜尋。Composio 平台會將 Braintree 付款工作流程路由至 Stripe 工具組,實現統一的付款管理。

工具組文件: composio.dev/toolkits/braintree


設定

此技能需要連線至 https://rube.app/mcp 的 Rube MCP 伺服器。

在執行任何工具之前,請確保 stripe 工具組存在有效的連線。如果沒有活躍的連線,請透過 RUBE_MANAGE_CONNECTIONS 發起一個。


核心工作流程

1. 建立與管理客戶

建立新客戶並擷取現有客戶的詳細資訊。

工具:

  • STRIPE_CREATE_CUSTOMER -- 建立新客戶
  • STRIPE_GET_CUSTOMERS_CUSTOMER -- 依 ID 擷取客戶
  • STRIPE_POST_CUSTOMERS_CUSTOMER -- 更新現有客戶
  • STRIPE_LIST_CUSTOMERS -- 列出客戶(支援分頁)
  • STRIPE_GET_V1_CUSTOMERS_SEARCH_CUSTOMERS -- 依電子郵件、名稱、中繼資料搜尋客戶

STRIPE_CREATE_CUSTOMER 的關鍵參數:

  • email -- 客戶的主要電子郵件地址
  • name -- 全名或商家名稱
  • phone -- 含國碼的電話號碼
  • description -- 內部參考備註
  • address -- 帳單地址物件,包含 line1、city、state、postal_code、country

STRIPE_GET_V1_CUSTOMERS_SEARCH_CUSTOMERS 的關鍵參數:

  • query(必填)-- Stripe 搜尋查詢語言。必須使用 field:value 語法:
    • email:'[email protected]' -- 精確比對(不區分大小寫)
    • name~'John' -- 子字串比對(最少 3 個字元)
    • metadata['key']:'value' -- 中繼資料搜尋
    • created>1609459200 -- 時間戳記比較
    • 使用 AND 或 OR 組合(最多 10 個子句,不可混合)
  • limit -- 每頁結果數(1–100,預設 10)

範例:

工具:STRIPE_CREATE_CUSTOMER
參數:
  email: "[email protected]"
  name: "Jane Doe"
  description: "企業方案客戶"
  address: {
    "line1": "123 Main St",
    "city": "San Francisco",
    "state": "CA",
    "postal_code": "94105",
    "country": "US"
  }

2. 管理訂閱

建立訂閱並檢視客戶的訂閱詳細資訊。

工具:

  • STRIPE_CREATE_SUBSCRIPTION -- 為現有客戶建立新訂閱
  • STRIPE_GET_CUSTOMERS_CUSTOMER_SUBSCRIPTIONS -- 列出客戶的所有訂閱
  • STRIPE_GET_CUSTOMERS_CUSTOMER_SUBS_SUB_EXPOSED_ID -- 取得特定訂閱

STRIPE_CREATE_SUBSCRIPTION 的關鍵參數:

  • customer(必填)-- 客戶 ID,例如 "cus_xxxxxxxxxxxxxx"
  • items(必填)-- 訂閱項目陣列,每一項包含:
    • price -- 價格 ID,例如 "price_xxxxxxxxxxxxxx"(使用此選項或 price_data)
    • price_data -- 內聯價格定義,包含 currency、product、unit_amount、recurring
    • quantity -- 項目數量
  • default_payment_method -- 付款方式 ID(試用期或發票收款時非必填)
  • trial_period_days -- 試用天數(試用期間無需付款)
  • collection_method -- "charge_automatically"(預設)或 "send_invoice"
  • cancel_at_period_end -- 在帳單週期結束時取消(布林值)

STRIPE_GET_CUSTOMERS_CUSTOMER_SUBSCRIPTIONS 的關鍵參數:

  • customer(必填)-- 客戶 ID
  • status -- 篩選條件:"active"、"all"、"canceled"、"trialing"、"past_due" 等
  • limit -- 每頁結果數(1–100,預設 10)

範例:

工具:STRIPE_CREATE_SUBSCRIPTION
參數:
  customer: "cus_abc123"
  items: [{"price": "price_xyz789", "quantity": 1}]
  trial_period_days: 14

3. 管理付款方式

列出並附加付款方式至客戶。

工具:

  • STRIPE_GET_CUSTOMERS_CUSTOMER_PAYMENT_METHODS -- 列出客戶的付款方式
  • STRIPE_ATTACH_PAYMENT_METHOD -- 將付款方式附加至客戶

STRIPE_GET_CUSTOMERS_CUSTOMER_PAYMENT_METHODS 的關鍵參數:

  • customer(必填)-- 客戶 ID
  • type -- 依類型篩選:"card"、"sepa_debit"、"us_bank_account" 等
  • limit -- 每頁結果數(1–100,預設 10)

範例:

工具:STRIPE_GET_CUSTOMERS_CUSTOMER_PAYMENT_METHODS
參數:
  customer: "cus_abc123"
  type: "card"
  limit: 10

4. 檢視餘額交易

擷取客戶餘額變更的歷史記錄。

工具: STRIPE_GET_CUSTOMERS_CUSTOMER_BALANCE_TRANSACTIONS

關鍵參數:

  • customer(必填)-- 客戶 ID
  • created -- 使用比較運算子依建立日期篩選:{"gte": 1609459200} 或 {"gt": 1609459200, "lt": 1640995200}
  • invoice -- 依相關發票 ID 篩選
  • limit -- 每頁結果數(1–100)
  • starting_after / ending_before -- 分頁游標

範例:

工具:STRIPE_GET_CUSTOMERS_CUSTOMER_BALANCE_TRANSACTIONS
參數:
  customer: "cus_abc123"
  limit: 25
  created: {"gte": 1704067200}

常見陷阱

陷阱詳細說明
搜尋查詢語法STRIPE_GET_V1_CUSTOMERS_SEARCH_CUSTOMERS 需要欄位前綴的查詢(例如 email:'x')。沒有欄位前綴的裸字串無效,會產生錯誤。
訂閱付款方式如果使用 trial_period_days 或 collection_method='send_invoice',則 default_payment_method 非必填。否則訂閱可能無法啟用。
付款方式附加PaymentMethod 必須處於分離狀態才能附加至客戶。已附加的方式會產生錯誤。
分頁游標使用物件 ID 搭配 starting_after/ending_before,不要使用頁碼。從每個回應中提取最後/第一個物件 ID。
餘額金額以分計所有貨幣金額均以最小貨幣單位(例如 USD 以分計)。1000 = $10.00。
訂閱狀態預設值GET_CUSTOMERS_CUSTOMER_SUBSCRIPTIONS 預設排除已取消的訂閱。傳入 status: "all" 以包含它們。

快速參考

工具代號說明
STRIPE_CREATE_CUSTOMER建立新客戶
STRIPE_GET_CUSTOMERS_CUSTOMER依 ID 擷取客戶
STRIPE_POST_CUSTOMERS_CUSTOMER更新現有客戶
STRIPE_LIST_CUSTOMERS列出客戶(支援分頁)
STRIPE_GET_V1_CUSTOMERS_SEARCH_CUSTOMERS依屬性搜尋客戶
STRIPE_CREATE_SUBSCRIPTION為客戶建立訂閱
STRIPE_GET_CUSTOMERS_CUSTOMER_SUBSCRIPTIONS列出客戶訂閱
STRIPE_GET_CUSTOMERS_CUSTOMER_SUBS_SUB_EXPOSED_ID取得特定訂閱
STRIPE_GET_CUSTOMERS_CUSTOMER_PAYMENT_METHODS列出客戶付款方式
STRIPE_ATTACH_PAYMENT_METHOD將付款方式附加至客戶
STRIPE_GET_CUSTOMERS_CUSTOMER_BALANCE_TRANSACTIONS列出客戶餘額交易

由 Composio 提供

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComposioHQ/-21risk-automation

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/-2chat-automation

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

相關技能