To handle the case when someone becomes a user of a paid web application, "we", as developers, need to take several steps:
- add them to the database
- verify their email
- send them a welcome message <- server
- charge them
- redirect them
- is there something else?
Most dev guides cover "add them to the database" and "redirect them". I have created all of the steps in my application. Naively, I took all of my steps and plopped into the route handler for a new user.
As I stand on the precipice of really-this-matters development, I am wondering:
- Does the order of operations matter? (obviously, we don't want to redirect to an authenticated area before we actually make an account and charge them, but should we wait to create the account until they click on the "confirm" email?)
- Do you have a story from your experience?
- If you verify email through verification service, do you still want to send a verify/confirm email email?
- Am I missing something huge?