Stripe marks a subscription "active" before anyone has paid. Here's how I tested a reward that has to wait for real money.
Writing that logic took an afternoon. Proving it worked took much longer, and most of that time went into one uncomfortable fact: the only event that matters, "the referred customer paid", happens at the end of a trial, on an…