Helped a friend wire Stripe to Discord for his membership group. Paid members were supposed to get the premium role automatically. Most did. A few paid and got nothing.
The webhook worked every time we checked it. The bug was the email.
Some people pay with one email and join Discord with another. Stripe said premium@x.com. Discord had j.x@gmail.com. Match on email and those paying members look like non-payers.
The fix was two lines: try email first, then give the person a code they type when joining. Not clever. Just covered the edge case.
If your automation matches people on one field, assume a few of them won't match.