Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)