| Line 124... |
Line 124... |
| 124 |
dom = parseString(spString)
|
124 |
dom = parseString(spString)
|
| 125 |
response = dom.getElementsByTagName('CheckStatusObj')[0]
|
125 |
response = dom.getElementsByTagName('CheckStatusObj')[0]
|
| 126 |
transStatus = response.getElementsByTagName('transStatus')[0].childNodes[0].data
|
126 |
transStatus = response.getElementsByTagName('transStatus')[0].childNodes[0].data
|
| 127 |
responseCode = response.getElementsByTagName('ResponseCode')[0].childNodes[0].data
|
127 |
responseCode = response.getElementsByTagName('ResponseCode')[0].childNodes[0].data
|
| 128 |
responseDescription = response.getElementsByTagName('ResponseDescription')[0].childNodes[0].data
|
128 |
responseDescription = response.getElementsByTagName('ResponseDescription')[0].childNodes[0].data
|
| - |
|
129 |
aggregatorRespCode = response.getElementsByTagName('aggregatorRespCode')[0].childNodes[0].data
|
| 129 |
if responseCode == '00' and transStatus == 'S':
|
130 |
if responseCode == '00' and transStatus == 'S':
|
| 130 |
return True, responseDescription
|
131 |
return True, responseDescription
|
| 131 |
elif responseCode in ('STO','US', 'UP') and transStatus == 'S':
|
132 |
elif responseCode in ('STO','US', 'UP') and transStatus == 'S':
|
| - |
|
133 |
if aggregatorRespCode == '00':
|
| - |
|
134 |
return True, responseDescription
|
| 132 |
raise Exception(111, "Still status is not known")
|
135 |
raise Exception(111, "Still status is not known")
|
| 133 |
else:
|
136 |
else:
|
| 134 |
return False, responseDescription
|
137 |
return False, responseDescription
|
| 135 |
|
138 |
|
| 136 |
def getRefunds(forDate):
|
139 |
def getRefunds(forDate):
|