When a renewal payment failed on Binderdex Pro, nothing told the subscriber. Binderdex is a Pokémon card collection and price app, and Pro is its paid subscription, billed through the app stores. Apple keeps retrying a failed charge for sixty days, and access during that grace period was already correct on both sides. The member saw silence the whole time. I can't help thinking some of them would have stayed if they'd known.
Three layers in one night
First, an in-app prompt. A card on the home screen and a row on the profile page say Payment failed while Apple's retry window is open and Pro is paused once it closes, with an Update payment button that opens the store's subscription page.
Second, the members who never open the app. A billing webhook, a notification from the payment system, queues one email per failed period, deduplicated per member and per expiry date, with copy that changes depending on whether they're still inside the grace window.
Third, a win-back, an email to bring back people who turned auto-renew off on purpose. The dry run taught me the most. That audience turned out to be mostly annual members with the better part of a year left, so a "your subscription ends soon" email would have gone to people nowhere near their end date. The timing rules now split them: monthly members hear from me seven days before their period ends, annual members fourteen.
The sender that refuses to send
Every piece shipped behind a mode flag, a setting that decides whether the sender really sends, and it defaults to showing who would get mail:
// The win-back sender's only job today: show who would hear from us.
const mode = process.env.WINBACK_MODE ?? "dry_run";
async function run() {
const audience = await dueMembers(); // monthly: 7 days before renewal
if (mode === "dry_run") {
console.log(`would send to ${audience.length} members`);
return; // refuses to go further, on purpose
}
await sendWinBack(audience);
}
Nothing reached a real member until the mode moved past dry run, and each piece waited for my explicit go-ahead before its first real send. It's dull, and it's why I could turn on all three layers in one night without holding my breath.