Refactored Payment and transaction processing method.
Refactored code for Encapsulating GateManagement class.