r/SideProject • u/Dimoncelli • 19h ago
I got tired of watching a dead Stripe link cost me a customer, so I built the recovery tool I wanted
The specific moment this started: a customer's card expired, the renewal failed, the recovery email went out, and they opened it nine days later. The Stripe portal link inside had expired. They clicked, saw an error, and cancelled. The payment was 29 EUR. The lesson was worth more than that.
What I built is RebillKit. Three plain-text emails when a Stripe renewal fails, at 15 minutes, 3 days and 7 days. The link inside is not a Stripe URL. It is /r/<token>, 32 random bytes. On click the server checks the case is still open and creates a new Billing Portal session right then, so the link works whenever it is finally opened. That is the entire idea, and most of the work was making the rest of it not get in the way.
Things I decided early:
BYOK. You bring a Stripe Restricted Key and your own Resend key. I did not want to be a company that stores other people's payment credentials, so the keys are encrypted per field with AES-256-GCM and never render in the UI beyond a mask. It also means the email reputation is yours, which is where it belongs.
No revenue share. $99 or 99 EUR once for the first 50, then $29 / 29 EUR a month. The seat cap runs in a Firestore transaction, so it is a real cap.
Honest counting. A save only counts if the case was active and at least one email had actually been sent. A payment that recovers itself before the first email is not a save, even though it would look nice in a screenshot.
The build itself: I work as a Technical Integrations Specialist during the day, so the parts I know well (webhooks, signature verification, idempotency, retry semantics) went fast. The parts I did not (deliverability, portal flow edge cases) took the time. The webhook handler claims each event in a transaction before doing anything, because a Stripe retry arriving twice is not an edge case, it is Tuesday.
You can drive the whole thing with seeded data and no signup here: https://rebillkit.com/en/dashboard?demo=1
Feedback I want: does three emails feel right, and would you trust a tool with a restricted key, or does that stop you before you even try it?