Home / Servers / Stripe API / post_payment_methods_payment_method_attach
Attach a PaymentMethod to a Customer
An MCP tool from the Stripe API server, hosted on mcp.hjlabs.in.
Attach a PaymentMethod to a Customer Attaches a PaymentMethod object to a Customer. To attach a new PaymentMethod to a customer for future payments, we recommend you use a SetupIntent or a PaymentIntent with setup_future_usage . These… [POST /v1/payment_methods/{payment_method}/attach]
Name on the gateway: stripe_api__post_payment_methods_payment_method_attach · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
payment_method required | string | payment_method parameter |
customer | string | The ID of the customer to which to attach the PaymentMethod. |
customer_account | string | The ID of the Account representing the customer to which to attach the… |
expand | array | Specifies which fields in the response should be expanded. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "stripe_api__post_payment_methods_payment_method_attach",
"arguments": {
"payment_method": "…"
}
}Or connect the Stripe API server directly, which lists 606 tools including this one:
claude mcp add --transport http hj-stripe-api https://mcp.hjlabs.in/mcp/stripe-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the attach a paymentmethod to a customer tool with payment_method set to ….