Subversion Repositories SmartDukaan

Rev

Rev 6357 | Rev 6719 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6357 Rev 6393
Line 37... Line 37...
37
    return raclient
37
    return raclient
38
 
38
 
39
def rechargeDevice(transactionId, rechargeType, strProviderCode, deviceNumber, amount, plan):
39
def rechargeDevice(transactionId, rechargeType, strProviderCode, deviceNumber, amount, plan):
40
    if not allow_recharge:
40
    if not allow_recharge:
41
        return 'S', '00', 'Testing', 'SUCCESS'
41
        return 'S', '00', 'Testing', 'SUCCESS'
42
    spString = getRechargeClient().service.getRecharge(username, password, '919650889334', 'SOAP', '115.249.47.66', transactionId, rechargeType, strProviderCode, deviceNumber, amount, 'DEBIT', '', plan, '')
42
    spString = getRechargeClient().service.getRecharge(username, password, '919650889334', 'SOAP', '115.249.47.66', transactionId, rechargeType, strProviderCode, deviceNumber, amount, 'DEBIT', plan, '')
43
    print spString
43
    print spString
44
    spString = re.sub('<\?.*\?>','',spString)
44
    spString = re.sub('<\?.*\?>','',spString)
45
    spString = "<dom>" + spString + "</dom>"
45
    spString = "<dom>" + spString + "</dom>"
46
    dom = parseString(spString)
46
    dom = parseString(spString)
47
    response = dom.getElementsByTagName('ActiveServicesPojo')[0]
47
    response = dom.getElementsByTagName('ActiveServicesPojo')[0]