Skip to main content

Evento payment.method.attached

Disparado quando um payment_method vira o método padrão de um customer, incluindo confirmações de setup_intent.
{
  "id": "evt_123",
  "object": "event",
  "created_at": "2026-05-16T18:32:00Z",
  "data": {
    "object": {
      "id": "pm_123",
      "object": "payment_method",
      "billing_details": {
        "address": null,
        "email": "cliente@example.com",
        "name": "Cliente Exemplo",
        "phone": null
      },
      "card": {
        "brand": "visa",
        "exp_month": 12,
        "exp_year": 2030,
        "last4": "4242"
      },
      "created_at": "2026-05-16T18:32:00Z",
      "customer": "cus_123",
      "livemode": true,
      "metadata": {},
      "type": "credit_card",
      "updated_at": null
    }
  },
  "livemode": true,
  "organization": "org_123",
  "request": {
    "id": null
  },
  "type": "payment.method.attached"
}