refactored the payment and email system to be pluggable and configurable through config.json and common adapter files