refactor stripe interface