Subversion Repositories SmartDukaan

Rev

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

Rev 17249 Rev 18062
Line 463... Line 463...
463
            if orderObj is None or merchantOrderId is None:
463
            if orderObj is None or merchantOrderId is None:
464
                orderIdDiv = rawHtmlSoup.body.find("div", {'class':'conf_succes'})
464
                orderIdDiv = rawHtmlSoup.body.find("div", {'class':'conf_succes'})
465
                if orderIdDiv is None:
465
                if orderIdDiv is None:
466
                    orderIdArt = rawHtmlSoup.body.find("article", {'class':'white'})
466
                    orderIdArt = rawHtmlSoup.body.find("article", {'class':'white'})
467
                    if orderIdArt is None:
467
                    if orderIdArt is None:
-
 
468
                        otpInput = rawHtmlSoup.body.find("input", {'id':'cod_otp'})
-
 
469
                        if otpInput is None:
468
                        resp['result'] = 'ORDER_NOT_CREATED_UNKNOWN'
470
                            resp['result'] = 'ORDER_NOT_CREATED_UNKNOWN'
-
 
471
                            return resp
-
 
472
                        else:
-
 
473
                            resp['result'] = 'ORDER_IGNORED_OTP'
469
                        return resp
474
                            return resp
470
                    else:
475
                    else:
471
                        orderIdDiv= orderIdArt.find('p', recursive=False)
476
                        orderIdDiv= orderIdArt.find('p', recursive=False)
472
                        orderIdVal = str(orderIdDiv.text.split(' : ')[1])
477
                        orderIdVal = str(orderIdDiv.text.split(' : ')[1])
473
                        print "Opening Shopclues Login Page"
478
                        print "Opening Shopclues Login Page"
474
                        login_url = "https://sm.shopclues.com/login"
479
                        login_url = "https://sm.shopclues.com/login"