Extract the Subscription ID from a webhook event, when present.
Works on customer.subscription.* events (the object is the subscription) and on objects that reference a subscription (Checkout Sessions, Invoices).
customer.subscription.*
Extract the Subscription ID from a webhook event, when present.
Works on
customer.subscription.*events (the object is the subscription) and on objects that reference a subscription (Checkout Sessions, Invoices).