Subversion Repositories SmartDukaan

Rev

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

Rev 12874 Rev 12875
Line 5060... Line 5060...
5060
            smsText = "Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet."
5060
            smsText = "Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet."
5061
            #Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet.
5061
            #Dear Customer, Your Payment was successful but due to some internal error with the operator's system we are not sure if the recharge was successful. In case your recharge is not processed, we will credit amount to your recharge wallet.
5062
        elif status == "Recharge Failed, Amount Refunded" :
5062
        elif status == "Recharge Failed, Amount Refunded" :
5063
            smsText = "Dear Customer, It seems operator could not process your recharge request. We are crediting the refund amount to your recharge wallet. You can use wallet amount to recharge again."
5063
            smsText = "Dear Customer, It seems operator could not process your recharge request. We are crediting the refund amount to your recharge wallet. You can use wallet amount to recharge again."
5064
        
5064
        
-
 
5065
        if smsText is not None and len(smsText)>0:
5065
        try:
5066
            try:
5066
            send_transaction_sms(recharge_order.userId, deviceNumber, smsText, SmsType.TRANSACTIONAL)
5067
                send_transaction_sms(recharge_order.userId, deviceNumber, smsText, SmsType.TRANSACTIONAL)
5067
        except Exception as e:
5068
            except Exception as e:
5068
            print e
5069
                print e
5069
            pass
5070
                pass
-
 
5071
        
5070
    
5072
    
5071
    try:
5073
    try:
5072
        helper_client = HelperClient().get_client()
5074
        helper_client = HelperClient().get_client()
5073
        helper_client.saveUserEmailForSending([email], "", source_name + " - Recharge Order Details", email_header + email_footer, str(recharge_order.id), "RechargeInfo", [], [], 1)
5075
        helper_client.saveUserEmailForSending([email], "", source_name + " - Recharge Order Details", email_header + email_footer, str(recharge_order.id), "RechargeInfo", [], [], 1)
5074
        return True
5076
        return True