When a stripe payment is completed and the webhook pings my app, the next step is to find the user that the payment was made from. Currently I receive the user’s unique ID in metadata from the Stripe webhook and I have to “do a search for user’s” and filter the users to the user with that unique ID.
However, with 1000s of users potentially making lots of payments, this seems like a workload unit-heavy approach to “search for users” every time.
What is a more efficient way to connect Stripe payments to the correct user?