| Line 90... |
Line 90... |
| 90 |
for detail in details:
|
90 |
for detail in details:
|
| 91 |
serviceDetails['Denomination Type'] = detail.getElementsByTagName('DenominationType')[0].childNodes[0].data
|
91 |
serviceDetails['Denomination Type'] = detail.getElementsByTagName('DenominationType')[0].childNodes[0].data
|
| 92 |
serviceDetails['Denomination Value'] = detail.getElementsByTagName('DenominationValue')[0].childNodes[0].data
|
92 |
serviceDetails['Denomination Value'] = detail.getElementsByTagName('DenominationValue')[0].childNodes[0].data
|
| 93 |
return serviceDetails
|
93 |
return serviceDetails
|
| 94 |
|
94 |
|
| - |
|
95 |
def checkTransactionStatus(spiceTID='', merchantTxnId=''):
|
| - |
|
96 |
spString = raclient.service.getCheckStatus(username,password,spiceTID,merchantTxnId)
|
| - |
|
97 |
print spString
|
| - |
|
98 |
spString = re.sub('<\?.*\?>','',spString)
|
| - |
|
99 |
spString = "<dom>" + spString + "</dom>"
|
| - |
|
100 |
dom = parseString(spString)
|
| 95 |
|
- |
|
| - |
|
101 |
response = dom.getElementsByTagName('CheckStatusObj')[0]
|
| - |
|
102 |
responseCode = response.getElementsByTagName('ResponseCode')[0].childNodes[0].data
|
| - |
|
103 |
transStatus = response.getElementsByTagName('transStatus')[0].childNodes[0].data
|
| - |
|
104 |
responseDescription = response.getElementsByTagName('ResponseDescription')[0].childNodes[0].data
|
| - |
|
105 |
if responseCode == '00' and transStatus == 'S':
|
| - |
|
106 |
return True, responseDescription
|
| 96 |
|
107 |
else:
|
| - |
|
108 |
return False, responseDescription
|
| 97 |
|
109 |
|