Index: /WAeUP_SRP/fceokene/waeup_custom/pay_interswitch.py
===================================================================
--- /WAeUP_SRP/fceokene/waeup_custom/pay_interswitch.py	(revision 2882)
+++ /WAeUP_SRP/fceokene/waeup_custom/pay_interswitch.py	(revision 2883)
@@ -33,8 +33,8 @@
 student = getattr(students,student_id)
 
-sbrain = context.students_catalog(id=student_id)[0]
-#amount,description = context.getSchoolFee(sbrain.faculty,sbrain.session,sbrain.course)
+student_record = context.students_catalog.getRecordByKey(student_id)
+#amount,description = context.getSchoolFee(student_record.faculty,student_record.session,student_record.course)
 info = {}
-info['student'] = sbrain
+info['student'] = student_record
 info['payment_possible'] = False
 info['amount'] = '0'
@@ -42,6 +42,6 @@
 info['type_description'] = ''
 info['pay_bill_to'] = ''
-fee_dict = context.getSchoolFee(sbrain)
-fulltime = sbrain.mode.endswith('_ft')
+fee_dict = context.getSchoolFee(student_record)
+fulltime = student_record.mode.endswith('_ft')
 
 if not fee_dict:
@@ -56,12 +56,13 @@
 info['payment_possible'] = True
 info['type_description'] = fee_dict['description']
-info['pay_bill_to'] = sbrain.name
+info['pay_bill_to'] = student_record.name
 info['student_id'] = student_id
-info['student_name'] = sbrain.name
-info['type'] = 'ONL'
+info['student_name'] = student_record.name
+info['type'] = 'online'
 info['status'] = 'started'
-info['target'] = sbrain.course
+info['session_id'] = student_record.session
+info['target'] = student_record.course
 info['subject'] = 'schoolfee'
-info['student_email'] = sbrain.email
+info['student_email'] = student_record.email
 now = DateTime.DateTime()
 info['date'] = now
