- Timestamp:
- 19 Jun 2007, 17:28:07 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py
r1847 r1938 40 40 if student_id is None: 41 41 return context.REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 42 #student = getattr(students,student_id)42 student = getattr(students,student_id) 43 43 s_brain = context.students_catalog(id = student_id)[0] 44 44 … … 48 48 info = {} 49 49 is_so = info['is_so'] = context.isSectionOfficer() 50 50 info['query_url'] = "https://webpay.interswitchng.com/TransactionQuery.aspx" 51 info['prod_id'] = '61' 51 52 #res = context.portal_catalog(portal_type='Student',id = student_id) 52 53 #res = context.students_catalog(id = student_id) … … 61 62 62 63 for so in sos: 63 64 64 row = {} 65 65 row['id'] = so.getId … … 73 73 else: 74 74 row['is_approvable'] = is_so and (review_state == "opened") 75 row['is_requeryable'] = False 75 76 if so_object.type_description.startswith('School Fee'): 76 row['is_requeryable'] = (review_state == "opened") and info['review_state'] == 'cleared_and_validated' 77 else: 78 row['is_requeryable'] = is_so and (review_state == "opened") 77 if (review_state == "opened") and\ 78 info['review_state'] == 'cleared_and_validated' and\ 79 not hasattr(so,'resp_code') and hasattr(so, 'order_id'): 80 row['is_requeryable'] = True 81 row['trans_ref'] = getattr(so,'order_id') 82 row['callback_url'] = "%s/payments/p%s/interswitch_cb?echo=p%s" % (student.absolute_url(), 83 so.order_id, 84 so.order_id) 79 85 if (review_state == "closed") and so_object.resp_code in ('SC','00','AP','IP',): 80 86 row['confirmed'] = 'active'
Note: See TracChangeset for help on using the changeset viewer.