Subversion Repositories SmartDukaan

Rev

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

Rev 14813 Rev 14814
Line 75... Line 75...
75
                    if 'Securely redirecting you' in soup.h3.text:
75
                    if 'Securely redirecting you' in soup.h3.text:
76
                        resp['result'] = 'ORDER_NOT_CREATED_KNOWN'
76
                        resp['result'] = 'ORDER_NOT_CREATED_KNOWN'
77
                    else:
77
                    else:
78
                        raise
78
                        raise
79
                except:
79
                except:
-
 
80
                    try:
80
                    if soup.h1.text in ['This is a duplicate order', 'There was a problem with your payment.']:
81
                        if soup.h1.text in ['This is a duplicate order', 'There was a problem with your payment.']:
-
 
82
                            resp['result'] = 'ORDER_NOT_CREATED_KNOWN'
-
 
83
                        else:
-
 
84
                            raise
-
 
85
                    except:
-
 
86
                        if soup.h3.text == 'Web page not available':
81
                        resp['result'] = 'ORDER_NOT_CREATED_KNOWN'
87
                            resp['result'] = 'ORDER_NOT_CREATED_KNOWN'
82
            return resp
88
            return resp
83
            
89
            
84
        else:
90
        else:
85
            try:
91
            try:
86
                mo = self.db.merchantOrder.find_one({"orderId":orderId})
92
                mo = self.db.merchantOrder.find_one({"orderId":orderId})