Subversion Repositories SmartDukaan

Rev

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

Rev 14771 Rev 14809
Line 68... Line 68...
68
                else:
68
                else:
69
                    resp['result'] = 'ORDER_ALREADY_CREATED_IGNORED'
69
                    resp['result'] = 'ORDER_ALREADY_CREATED_IGNORED'
70
                    
70
                    
71
                return resp
71
                return resp
72
            except:
72
            except:
-
 
73
                try:
-
 
74
                    if 'Securely redirecting you' in soup.find("h1").text:
-
 
75
                        resp['result'] = 'PAYMNET_REDIRECT'
-
 
76
                    else:
-
 
77
                        resp['result'] = 'ORDER_NOT_CREATED'
-
 
78
                except:
73
                resp["result"] = 'ORDER_NOT_CREATED'
79
                    resp["result"] = 'ORDER_NOT_CREATED'
74
                return resp
80
                return resp
75
        
81
        
76
        else:
82
        else:
77
            try:
83
            try:
78
                mo = self.db.merchantOrder.find_one({"orderId":orderId})
84
                mo = self.db.merchantOrder.find_one({"orderId":orderId})