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

# payment_method.attached

> A payment method was saved for a customer's subscription.

## When this fires

Fired when Commet records a payment method for a subscription: after a paid checkout, when a trial starts with a card on file, or when a zero-total checkout completes with a saved payment method.

The `card` object carries display metadata only — brand, last 4 digits, and expiration. Full card numbers never leave the payment provider. When the saved method is not a card or its details cannot be retrieved, `card` is `null`.

`paymentMethod` identifies the saved instrument (`card` or `mercado_pago`; OXXO never leaves a saved instrument). A `null` `card` object does not identify its type.

Use it to show the saved card in your own billing UI or confirm to the customer that their payment method is on file.


## OpenAPI

````yaml /openapi/en/webhooks/2026-08-27.json webhook payment_method.attached
openapi: 3.1.0
info:
  title: Commet Webhooks
  version: '2026-08-27'
  description: >-
    Outbound webhook events emitted by the Commet API. Each event is delivered
    as a signed POST to your configured endpoints.
servers: []
security: []
paths: {}

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.