#8020?4-recieve-webhook
1 messages ยท Page 1 of 1 (latest)
Hello ๐
You can listen for customer.source.deleted event for this
https://stripe.com/docs/api/events/types#event_types-customer.source.deleted
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you! But i mean if customer deletes payment method not source. As i understand i should listen for this ?
do you mean using the customer portal?
if the payment method is deleted using customer portal, you'll actually receive both events
payment_method.detached as well as customer.source.deleted
ok, thanks a lot!