Stripe Said Past Due. The State Machine Said No. Both Were Right.
A paused subscription receives a customer.subscription.updated webhook from Stripe. The payload says the new status is past_due. The local state machine has eight states and fifteen valid transitions, defined as a single Elixir map literal. paused ca...
kingsleyonoh.hashnode.dev7 min read