Change checkout flow and send emails when checkout is complete