Setting up a newsletter?
I am currently working with Stripe, and while I am truly impressed by the quality of their API's and well thought out models, I'm having a hard time properly implementing this within my own architecture.
The main problem I do have is dealing with all the edge cases. I'm trying to condense the logic exposed by stripe into three handlers which I want to expose to my own front-end, which on a conceptual level are:
I for one am quite allergic to messy code, and currently the logic dealing with creating a new subscription is more like conditional spaghetti. How do you keep your payment logic organized, and maybe more importantly, well tested including all edge cases?
To what levels have you gone to ensure payments can go through successfully? Am I the only one here being paranoid that people will be turned away because they are unable to get a paid subscription?