Subversion Repositories SmartDukaan

Rev

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

Rev 14948 Rev 14949
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
        print "Order Id to be parsed is : ", orderId
48
        resp = {}
49
        resp = {}
49
        resp['result'] = 'ORDER_NOT_CREATED'
50
        resp['result'] = 'ORDER_NOT_CREATED'
50
        if ORDER_SUCCESS_URL in orderSuccessUrl or THANKYOU_URL in orderSuccessUrl:
51
        if ORDER_SUCCESS_URL in orderSuccessUrl or THANKYOU_URL in orderSuccessUrl:
51
            try:
52
            try:
52
                soup = BeautifulSoup(rawHtml)
53
                soup = BeautifulSoup(rawHtml)