refactor stripe integration