Subversion Repositories SmartDukaan

Rev

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

Rev 14950 Rev 14958
Line 43... Line 43...
43
        
43
        
44
    def getName(self):
44
    def getName(self):
45
        return "amazon"
45
        return "amazon"
46
    
46
    
47
    def parseOrderRawHtml(self, orderId, subTagId, userId, rawHtml, orderSuccessUrl, track=False):
47
    def parseOrderRawHtml(self, orderId, subTagId, userId, rawHtml, orderSuccessUrl, track=False):
-
 
48
        parseString = "Tracking" if track else "Transacted"
48
        print "Order Id to be parsed is : ", orderId
49
        print parseString, "Order Id to be parsed is :", orderId
49
        resp = {}
50
        resp = {}
50
        resp['result'] = 'ORDER_NOT_CREATED'
51
        resp['result'] = 'ORDER_NOT_CREATED'
51
        if ORDER_SUCCESS_URL in orderSuccessUrl or THANKYOU_URL in orderSuccessUrl:
52
        if ORDER_SUCCESS_URL in orderSuccessUrl or THANKYOU_URL in orderSuccessUrl:
52
            try:
53
            try:
53
                soup = BeautifulSoup(rawHtml)
54
                soup = BeautifulSoup(rawHtml)