Paycose Docs
FlowEvents

Payment method events

What data you get for payment_method.created, payment_method.updated, and payment_method.deleted.

Fires when a saved payment method (a card, etc.) is created, updated, or removed.

Prop

Type

{
  "id": "pm_01J9ABCDEFGHJKMNPQRSTV",
  "object": "payment_method",
  "customer_id": "cus_01J8XYZABCDEFGHJKMNPQR",
  "type": "card",
  "brand": "visa",
  "card": { "brand": "visa", "last4": "4242", "exp_month": 12, "exp_year": 2029 },
  "billing_details": { "email": "somchai@example.com" }
}

payment_method.updated uses the same shape.

payment_method.deleted sends an empty data: {}.