add method for handling payment