I'm testing a subscription product and firing events locally using stripe listen --forward-to .... I believe my endpoint is set up correctly since it can listen for and receive events.
Issue: the customer IDs in the events do not match.
For example, the id in customer.created is cus_J6l***Yu0
The id in customer.subscription.created is cus_J6l***yVb
Also, the subscription IDs in customer.subscription.created and customer.subscription.updated do not match. sub_J6l***ikY and sub_J6l***ufT respectively.
It's unclear to me how to associate these events with each other. In a production setting, I could have many different customers creating subscriptions at a time. My expectation is that there's a key to associate customers and the subscriptions they create (or subscriptions and a subscription update).