Technical guide to building recurring payment systems that handle retries, card updates, mandate management, and edge cases.