Pyments: How To Design Payment Applications In Python
summary
Redesigned kiwi.com’s payment application in Python to add new payment methods and live traffic support, using composition and chain of blocks instead of inheritance, a private pay/process split for sync vs async flows, and a decision-logic gate to prevent race conditions from at-least-once provider callbacks. Implementation includes a Django-oriented package called Jango acquiring, it handles multiple providers and async callbacks in production, and the team reports successful rollout with reduced integration pain and maintainable, testable payment flows.
AI-written summary · about
chapters (12)
- 0:00The value of craftsmanship
- 1:01Why build internal systems
- 2:56The dual nature of payments
- 4:20Beyond card payments
- 6:12Python for financial systems
- 9:29Architecting with composition
- 12:49The block-based approach
- 15:52Handling sync and async flows
- 19:13Preventing race conditions
- 20:56Reflecting on design
- 22:59Scaling and complexity
- 25:49Security and decommissioning
