Subversion Repositories SmartDukaan

Rev

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

Rev 16435 Rev 16437
Line 136... Line 136...
136
            raise
136
            raise
137
        
137
        
138
    def parseOrderRawHtml(self, orderId, subTagId, userId, rawHtml, orderSuccessUrl):
138
    def parseOrderRawHtml(self, orderId, subTagId, userId, rawHtml, orderSuccessUrl):
139
        
139
        
140
        #Expected is json
140
        #Expected is json
141
        orderSuccessUrl = find_between(orderSuccessUrl, "<pre>", "</pre>")
141
        rawHtml = "".join(["{", find_between(rawHtml,">{", "}</pre>"), "}"])
142
        if orderSuccessUrl != "": 
142
        if rawHtml != "": 
143
            try:
143
            try:
144
                resp = {}
144
                resp = {}
145
                #orderSuccessUrl = "https://paytm.com/shop/orderdetail/1155961075?actions=1&channel=web&version=2"
145
                #orderSuccessUrl = "https://paytm.com/shop/orderdetail/1155961075?actions=1&channel=web&version=2"
146
                ordermap = json.loads(rawHtml).get("order")
146
                ordermap = json.loads(rawHtml).get("order")
147
                if not ordermap.get("need_shipping"):
147
                if not ordermap.get("need_shipping"):