Hacker News new | past | comments | ask | show | jobs | submit login

If you have customer and credit card model, I'd implement the checkout process inside Order and OrderItem model classes. It would probably use an AASM state machine to represent the progress through the purchase etc.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: