Braintree automation

From ComposioHQ/awesome-codex-skills · View interactive version

Braintree automation is an AI agent skill from the GitHub repository ComposioHQ/awesome-codex-skills. Braintree Automation: manage payment processing via Stripe-compatible tools for customers, subscriptions, payment methods, and transactions

How to use this skill

Skill file

Braintree 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


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:

Key Parameters for STRIPE_CREATE_CUSTOMER:

Key Parameters for STRIPE_GET_V1_CUSTOMERS_SEARCH_CUSTOMERS:

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:

Key Parameters for STRIPE_CREATE_SUBSCRIPTION:

Key Parameters for STRIPE_GET_CUSTOMERS_CUSTOMER_SUBSCRIPTIONS:

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:

Key Parameters for STRIPE_GET_CUSTOMERS_CUSTOMER_PAYMENT_METHODS:

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:

Example:

Tool: STRIPE_GET_CUSTOMERS_CUSTOMER_BALANCE_TRANSACTIONS
Arguments:
  customer: "cus_abc123"
  limit: 25
  created: {"gte": 1704067200}

Known Pitfalls

| Pitfall | Detail |

|---------|--------|

| Search query syntax | STRIPE_GET_V1_CUSTOMERS_SEARCH_CUSTOMERS requires field-prefixed queries (e.g., email:'x'). Bare strings without field prefixes are invalid and will error. |

| Subscription payment method | default_payment_method is not required if using trial_period_days or collection_method='send_invoice'. Otherwise, the subscription may fail to activate. |

| Payment method attachment | A PaymentMethod must be in a detached state before attaching to a customer. Already-attached methods will error. |

| Pagination cursors | Use starting_after/ending_before 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 | GET_CUSTOMERS_CUSTOMER_SUBSCRIPTIONS excludes canceled subscriptions by default. Pass status: "all" to include them. |


Quick Reference

| Tool Slug | Description |

|-----------|-------------|

| STRIPE_CREATE_CUSTOMER | Create a new customer |

| STRIPE_GET_CUSTOMERS_CUSTOMER | Retrieve a customer by ID |

| STRIPE_POST_CUSTOMERS_CUSTOMER | Update an existing customer |

| STRIPE_LIST_CUSTOMERS | List customers with pagination |

| STRIPE_GET_V1_CUSTOMERS_SEARCH_CUSTOMERS | Search customers by attributes |

| STRIPE_CREATE_SUBSCRIPTION | Create a subscription for a customer |

| STRIPE_GET_CUSTOMERS_CUSTOMER_SUBSCRIPTIONS | List customer subscriptions |

| STRIPE_GET_CUSTOMERS_CUSTOMER_SUBS_SUB_EXPOSED_ID | Get a specific subscription |

| STRIPE_GET_CUSTOMERS_CUSTOMER_PAYMENT_METHODS | List customer payment methods |

| STRIPE_ATTACH_PAYMENT_METHOD | Attach payment method to customer |

| STRIPE_GET_CUSTOMERS_CUSTOMER_BALANCE_TRANSACTIONS | List customer balance transactions |


Powered by Composio

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.