def charge(self): try: ValidityCheck.validate_charge_params(self.request_params) except Exception, e: self.response[Constants.STATUS] = Constants.ERROR self.response[ Constants.ERROR_MESSAGE] = "Invalid parameter : " + str(e)
def query(self): try: ValidityCheck.validate_query_params(self.query_params) except Exception, e: raise Exception("Invalid parameter : " + str(e))
def is_valid(self): return ValidityCheck.validate_refund_params(self.request_params)
def refund(self): try: ValidityCheck.validate_refund_params(self.request_params) except Exception, e: raise Exception("Invalid parameter : " + str(e))
def charge(self): try: ValidityCheck.validate_charge_params(self.request_params) except Exception, e: self.response[Constants.STATUS] = Constants.ERROR self.response[Constants.ERROR_MESSAGE] = "Invalid parameter : " + str(e)