Subversion Repositories SmartDukaan

Rev

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

Rev 14809 Rev 14810
Line 69... Line 69...
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:
73
                try:
74
                    if 'Securely redirecting you' in soup.find("h1").text:
74
                    if 'Securely redirecting you' in soup.h3.text:
75
                        resp['result'] = 'PAYMNET_REDIRECT'
75
                        resp['result'] = 'PAYMNET_REDIRECT'
76
                    else:
76
                    else:
77
                        resp['result'] = 'ORDER_NOT_CREATED'
77
                        resp['result'] = 'ORDER_NOT_CREATED'
78
                except:
78
                except:
79
                    resp["result"] = 'ORDER_NOT_CREATED'
79
                    resp["result"] = 'ORDER_NOT_CREATED'