GitHub Marketplace App Lifecycle

In reviewing the “Billing Flows” documentation, I’m having an exceptionally hard time parsing out exactly what the flow looks like… In parts it mentions GitHub Apps vs Oauth Apps, and I get confused trying to figure out when exactly the user is on the GitHub side vs my app.  As a side note, it’d be really nice to have some sort of flow chart that explains the user flows.

The primary question I have currently is that (from my reading of the above documentation) it *sounds* like the purchase webhook fires before we even have a authorized user that has completed the Oauth flow.

I’m trying to understand the recommended use case of how exactly to tie a purchase event to a user in the system that doesn’t exist yet.

After further investigation it looks like the recommendation is the query for purchases for every OAuth flow completion? and provision everything from there?