Changeset 2891 for WAeUP_SRP/fceokene/waeup_custom
- Timestamp:
- 9 Dec 2007, 11:03:55 (17 years ago)
- Location:
- WAeUP_SRP/fceokene/waeup_custom
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/fceokene/waeup_custom/getInterswitchParams.py
r2857 r2891 10 10 # $Id$ 11 11 12 test = " simulate"12 test = "" 13 13 d = {} 14 d['payment_possible'] = True 14 d['payment_possible'] = True 15 15 d['pay_ship_to'] = "Federal College Okene" 16 16 … … 18 18 d['site_name'] = "fceokene.waeup.org" 19 19 d['currency_id'] = '566' 20 d['type'] = 'online' 21 d['status'] = 'started' 20 d['type'] = 'online' 21 d['status'] = 'started' 22 22 d['surcharge'] = '150' 23 23 d['payment_params'] = 'switch_college_split' 24 24 if test == 'simulate': 25 d['action'] = "%s/payments/%s/simulate_callback" % (student.absolute_url(),payment_id) 25 d['action'] = "%s/payments/%s/simulate_callback" % (student.absolute_url(),payment_id) #do not use simulate_callback 26 26 elif test == 'test': 27 d['action'] = "https://webpay.interswitchng.com/test paydirect/webpay/pay.aspx"27 d['action'] = "https://webpay.interswitchng.com/test_paydirect/webpay/pay.aspx" 28 28 else: 29 29 d['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx" 30 30 if paytype in ("HOM",): 31 31 d['callback_function'] = 'interswitch_acco_cb' 32 d['pay_item_id'] = '8302' 33 d[' description'] = d['type_description'] = 'Hostel Maintenance Fee'34 d['pay_item_name'] = "FCE Okene %( description)s" % d35 d['amount'] = '4000' 36 d[' subject'] = 'hostel_maintenance'37 d[' target'] = paytype32 d['pay_item_id'] = '8302' 33 d['type_description'] = 'Hostel Maintenance Fee' 34 d['pay_item_name'] = "FCE Okene %(type_description)s" % d 35 d['amount'] = '4000' 36 d['category'] = 'hostel_maintenance' 37 d['item'] = paytype 38 38 39 39 return d -
WAeUP_SRP/fceokene/waeup_custom/getPaymentsFolderInfo.py
r2890 r2891 43 43 #student = getattr(students,student_id) 44 44 student_record = context.students_catalog.getRecordByKey(student_id) 45 context['updatePayments']()45 #context['updatePayments']() 46 46 payments = [] 47 47 … … 98 98 hasattr(so_doc, 'order_id') and not so_doc.resp_code) or str(member) in ('admin','gbenga','isouaba'): 99 99 row['is_requeryable'] = True 100 row['callback_url'] = "%s/payments/%s/interswitch_cb" % (student.absolute_url(), 101 so.getId) 100 row['callback_url'] = "%s/interswitch_cb" % (payments_path) 102 101 href = '%(query_url)s' % info 103 102 href += '?transRef=%(trans_ref)s' % row -
WAeUP_SRP/fceokene/waeup_custom/pay_interswitch.py
r2883 r2891 62 62 info['status'] = 'started' 63 63 info['session_id'] = student_record.session 64 info[' target'] = student_record.course65 info[' subject'] = 'schoolfee'64 info['item'] = student_record.course 65 info['category'] = 'schoolfee' 66 66 info['student_email'] = student_record.email 67 67 now = DateTime.DateTime()
Note: See TracChangeset for help on using the changeset viewer.