News for hackers. Stuff that matters.
Re:Ask HN: Which scripts are you most glad you've written? by dangrossman on Tuesday November 11, 2014 @08:41PM (#8593535)
1. Recurring billing and dunning.

Subscription renewals are a little script that runs daily. If the charge is declined, a mail gets sent and a date for the next reattempt is set in the database for when the script should try again.

A series of charge attempts and mails go out on a schedule asking the customer to update their payment information or get in touch. The mails are all prewritten, and at least 75% of subscriptions are recovered through this automated process.

It saves time, I don't have to handle following up on declined charges myself (which I hate to do manually), and it's worth six figures a year compared to just letting subscriptions lapse because of one declined charge.

2. Off-site backups and code that validates they're complete and restore-able. It's peace of mind. No server runs forever; you will eventually need that backup.

There are no comments on this comment yet.