refactored code to follow stripe api naming conventions