> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# payment_methods_attach

> Attach a payment method to a customer so it can be charged later.

<div className="tool-route"><span className="tool-row-method" data-method="POST">POST</span><code>{"https://api.stripe.com/v1/payment_methods/{paymentMethod}/attach"}</code></div>

```python stripe_payment_methods_attach.py theme={null}
from charter.packs import stripe

result = await stripe.payment_methods_attach.ainvoke({"paymentMethod": ..., "customer": ...})
```

## Path parameters

<div className="reference-table">
  | Field                                                                 | Type     | Description                   |
  | --------------------------------------------------------------------- | -------- | ----------------------------- |
  | `paymentMethod` <span className="required" title="required">\*</span> | `string` | The ID of the payment method. |
</div>

## Body

<div className="reference-table">
  | Field                                                            | Type     | Description                                      |
  | ---------------------------------------------------------------- | -------- | ------------------------------------------------ |
  | `customer` <span className="required" title="required">\*</span> | `string` | The ID of the customer to attach this method to. |
</div>
