refactored stripe wrapper to be more DRY