#dmmulroy-customer-payment-method
1 messages · Page 1 of 1 (latest)
Are you asking how to track when invoice_settings.default_payment_method has been updated on a customer?
Yeah, I suppose I'm asking how to identify if the payment method associated with that id has been updated (i.e. it expired)
If you're updating the customer, then you should get a customer.updated event when they've updated their default.
and you can check previous_attributes (see https://stripe.com/docs/api/events/object#event_object-data-previous_attributes) to see if invoice_settings.default_payment_method was an attribute that was changed
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.