adding functionality for payment gateway