Changeset 3240 for WAeUP_SRP/fceokene/waeup_custom
- Timestamp:
- 26 Feb 2008, 22:40:31 (17 years ago)
- Location:
- WAeUP_SRP/fceokene/waeup_custom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/fceokene/waeup_custom/getInterswitchParams.py
r3012 r3240 28 28 d['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx" 29 29 if paytype in ("HOM",): 30 d['callback_function'] = 'interswitch_ acco_cb'30 d['callback_function'] = 'interswitch_cb' 31 31 d['pay_item_id'] = '8300' 32 32 d['type_description'] = 'Hostel Maintenance Fee' -
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.