refactored
Extracted stripe functions to payment class