Stripe Interview Question

I was asked to code a payment tracking system based on an arbitrary specification.