From Dev.to
Payment status as a state machine: count promo usage only after settlement
ABhome Admission handles enrollment and paid events for 1,000+ applicants. I built the paid-event module: Midtrans Snap checkout, a webhook that drives payment status, and promo codes. Two decisions i...
