Great point, Paul Hartness . Renewals are the harder version of this, because nobody is sitting there to tap Pay again.
I'd model it the way Stripe does: a past_due state between active and canceled. Access continues for a grace period while the gateway retries. When the last retry fails, cut access and tell the user to pay to continue banner or something..
Might do a short on this. Thanks for adding it!
How have you handled it?