Events
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. Thecard 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.Body
application/json
Response
200
Return any 2xx status code to acknowledge receipt of the event.