stripe and cart refactor