A-Curated-List-of-Awesome-Claude-Skills Braintree Automation
Braintree Automation: manage payment processing via Stripe-compatible tools for customers, subscriptions, payment methods, and transactions
git clone https://github.com/Engineer1999/A-Curated-List-of-Awesome-Claude-Skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/Engineer1999/A-Curated-List-of-Awesome-Claude-Skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/app-automations/braintree-automation" ~/.claude/skills/engineer1999-a-curated-list-of-awesome-claude-skills-braintree-automation && rm -rf "$T"
app-automations/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 Claude Skill platform routes Braintree payment workflows through the Stripe toolkit for unified payment management.
Toolkit docs: claude-skills.ai/toolkits/braintree
Setup
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}
Known Pitfalls
| 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. |
Quick Reference
| 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 |
Part of the Claude Skills Hub