Awesome-claude-skills-cn Braintree Automation
Braintree 自动化:通过 Stripe 兼容工具管理支付处理,包括客户、订阅、支付方式和交易。
git clone https://github.com/Athe1st3154/awesome-claude-skills-cn
T=$(mktemp -d) && git clone --depth=1 https://github.com/Athe1st3154/awesome-claude-skills-cn "$T" && mkdir -p ~/.claude/skills && cp -r "$T/composio-skills/braintree-automation" ~/.claude/skills/athe1st3154-awesome-claude-skills-cn-braintree-automation && rm -rf "$T"
composio-skills/braintree-automation/SKILL.mdBraintree Automation
Automate payment processing operations via Stripe-compatible tooling including managing customers, subscriptions, payment methods, balance transactions, and customer searches. The Composio platform routes Braintree payment workflows through the Stripe toolkit for unified payment management.
Toolkit docs: composio.dev/toolkits/braintree
设置
This skill requires the Rube MCP server connected at
https://rube.app/mcp.
Before executing any tools, ensure an active connection exists for the
stripe toolkit. If no connection is active, initiate one via RUBE_MANAGE_CONNECTIONS.
Core Workflows
1. Create and Manage Customers
Create new customers and retrieve existing customer details.
Tools:
-- Create a new customerSTRIPE_CREATE_CUSTOMER
-- Retrieve a customer by IDSTRIPE_GET_CUSTOMERS_CUSTOMER
-- Update an existing customerSTRIPE_POST_CUSTOMERS_CUSTOMER
-- List customers with paginationSTRIPE_LIST_CUSTOMERS
-- Search customers by email, name, metadataSTRIPE_GET_V1_CUSTOMERS_SEARCH_CUSTOMERS
Key Parameters for
:STRIPE_CREATE_CUSTOMER
-- Customer's primary email addressemail
-- Full name or business namename
-- Phone number with country codephone
-- Internal reference notesdescription
-- Billing address object withaddress
,line1
,city
,state
,postal_codecountry
Key Parameters for
:STRIPE_GET_V1_CUSTOMERS_SEARCH_CUSTOMERS
(required) -- Stripe Search Query Language. Must usequery
syntax:field:value
-- Exact match (case insensitive)email:'user@example.com'
-- Substring match (min 3 chars)name~'John'
-- Metadata searchmetadata['key']:'value'
-- Timestamp comparisoncreated>1609459200- Combine with
orAND
(max 10 clauses, cannot mix)OR
-- Results per page (1--100, default 10)limit
Example:
Tool: STRIPE_CREATE_CUSTOMER Arguments: email: "jane@example.com" name: "Jane Doe" description: "Enterprise plan customer" address: { "line1": "123 Main St", "city": "San Francisco", "state": "CA", "postal_code": "94105", "country": "US" }
2. Manage Subscriptions
Create subscriptions and view customer subscription details.
Tools:
-- Create a new subscription for an existing customerSTRIPE_CREATE_SUBSCRIPTION
-- List all subscriptions for a customerSTRIPE_GET_CUSTOMERS_CUSTOMER_SUBSCRIPTIONS
-- Get a specific subscriptionSTRIPE_GET_CUSTOMERS_CUSTOMER_SUBS_SUB_EXPOSED_ID
Key Parameters for
:STRIPE_CREATE_SUBSCRIPTION
(required) -- Customer ID, e.g.,customer"cus_xxxxxxxxxxxxxx"
(required) -- Array of subscription items, each with:items
-- Price ID, e.g.,price
(use this OR"price_xxxxxxxxxxxxxx"
)price_data
-- Inline price definition withprice_data
,currency
,product
,unit_amountrecurring
-- Item quantityquantity
-- Payment method ID (not required for trials or invoice billing)default_payment_method
-- Trial days (no payment required during trial)trial_period_days
--collection_method
(default) or"charge_automatically""send_invoice"
-- Cancel at end of billing period (boolean)cancel_at_period_end
Key Parameters for
:STRIPE_GET_CUSTOMERS_CUSTOMER_SUBSCRIPTIONS
(required) -- Customer IDcustomer
-- Filter:status
,"active"
,"all"
,"canceled"
,"trialing"
, etc."past_due"
-- Results per page (1--100, default 10)limit
Example:
Tool: STRIPE_CREATE_SUBSCRIPTION Arguments: customer: "cus_abc123" items: [{"price": "price_xyz789", "quantity": 1}] trial_period_days: 14
3. Manage Payment Methods
List and attach payment methods to customers.
Tools:
-- List a customer's payment methodsSTRIPE_GET_CUSTOMERS_CUSTOMER_PAYMENT_METHODS
-- Attach a payment method to a customerSTRIPE_ATTACH_PAYMENT_METHOD
Key Parameters for
:STRIPE_GET_CUSTOMERS_CUSTOMER_PAYMENT_METHODS
(required) -- Customer IDcustomer
-- Filter by type:type
,"card"
,"sepa_debit"
, etc."us_bank_account"
-- Results per page (1--100, default 10)limit
Example:
Tool: STRIPE_GET_CUSTOMERS_CUSTOMER_PAYMENT_METHODS Arguments: customer: "cus_abc123" type: "card" limit: 10
4. View Balance Transactions
Retrieve the history of balance changes for a customer.
Tool:
STRIPE_GET_CUSTOMERS_CUSTOMER_BALANCE_TRANSACTIONS
Key Parameters:
(required) -- Customer IDcustomer
-- Filter by creation date with comparison operators:created
or{"gte": 1609459200}{"gt": 1609459200, "lt": 1640995200}
-- Filter by related invoice IDinvoice
-- Results per page (1--100)limit
/starting_after
-- Pagination cursorsending_before
Example:
Tool: STRIPE_GET_CUSTOMERS_CUSTOMER_BALANCE_TRANSACTIONS Arguments: customer: "cus_abc123" limit: 25 created: {"gte": 1704067200}
已知陷阱
| Pitfall | Detail |
|---|---|
| Search query syntax | requires field-prefixed queries (e.g., ). Bare strings without field prefixes are invalid and will error. |
| Subscription payment method | is not required if using or . Otherwise, the subscription may fail to activate. |
| Payment method attachment | A must be in a detached state before attaching to a customer. Already-attached methods will error. |
| Pagination cursors | Use / with object IDs, not page numbers. Extract the last/first object ID from each response. |
| Balance amounts in cents | All monetary amounts are in the smallest currency unit (e.g., cents for USD). 1000 = $10.00. |
| Subscription status default | excludes canceled subscriptions by default. Pass to include them. |
快速参考
| Tool Slug | Description |
|---|---|
| Create a new customer |
| Retrieve a customer by ID |
| Update an existing customer |
| List customers with pagination |
| Search customers by attributes |
| Create a subscription for a customer |
| List customer subscriptions |
| Get a specific subscription |
| List customer payment methods |
| Attach payment method to customer |
| List customer balance transactions |
由 Composio 提供支持