Skip to Content
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.

Each event arrives as an event object. The examples on this page show its data.object.

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 the payment method as it was just before it was deleted.