Changeset 3240 for WAeUP_SRP/fceokene/waeup_custom/getPaymentsFolderInfo.py
- Timestamp:
- 26 Feb 2008, 22:40:31 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/fceokene/waeup_custom/getPaymentsFolderInfo.py
r3237 r3240 47 47 #student = getattr(students,student_id) 48 48 student_record = context.students_catalog.getRecordByKey(student_id) 49 #context['updatePayments']() 49 50 50 51 51 info = {} … … 93 93 url = row['url'] = "%s/p%s" % (payments_path,payment.order_id[6:]) 94 94 row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees or str(member) in ('admin',) 95 row['is_approvable'] = is_so and row['is_requeryable'] 95 row['is_approvable'] = is_so and row['is_requeryable'] and payment.category == 'schoolfee' # does not make sense for maitenance 96 96 row['resp_desc'] = payment.resp_desc or 'Payment Process Interrupted' 97 97 row['trans_ref'] = payment.order_id 98 98 if row['is_requeryable']: 99 if payment.category == 'schoolfee':100 row['callback_url'] = "%(url)s/interswitch_cb" % row 101 elif payment.category == 'hostel_maintenance': 102 row['callback_url'] = "%(url)s/interswitch_acco_cb" % row 103 else: 104 row['callback_url'] = '' 99 row['callback_url'] = "%(url)s/interswitch_cb" % row 100 # if payment.category == 'schoolfee': 101 # row['callback_url'] = "%(url)s/interswitch_cb" % row 102 # elif payment.category == 'hostel_maintenance': 103 # row['callback_url'] = "%(url)s/interswitch_acco_cb" % row 104 # else: 105 105 href = '%(query_url)s' % info 106 106 href += '?transRef=%(trans_ref)s' % row
Note: See TracChangeset for help on using the changeset viewer.