Changeset 4437 for WAeUP_SRP/trunk/skins/waeup_fceokene/pay_interswitch.py
- Timestamp:
- 27 Jul 2009, 09:54:27 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_fceokene/pay_interswitch.py
r4192 r4437 1 ## Script (Python) "pay_ online"1 ## Script (Python) "pay_interswitch" 2 2 ##bind container=container 3 3 ##bind context=context … … 28 28 wftool = context.portal_workflow 29 29 students = context.portal_url.getPortalObject().campus.students 30 31 32 30 student_id = context.getStudentId() 33 31 student = getattr(students,student_id) 34 35 32 student_record = context.students_catalog.getRecordByKey(student_id) 36 33 #amount,description = context.getSchoolFee(student_record.faculty,student_record.session,student_record.course) … … 50 47 info['site_id'] = '83' 51 48 info['currency_id'] = '566' 52 pay_item_id = "830 4"49 pay_item_id = "8302" 53 50 54 51 #info['type_code'] = sbrain.course #type_code is redundant and will be removed soon … … 141 138 142 139 if student_record.mode in ('ug_sw','prence',): 143 xmldict['fceokene_acct'] = " 04470040000032"144 xmldict['bank_id'] = ' 7'140 xmldict['fceokene_acct'] = "6216801025" 141 xmldict['bank_id'] = '117' 145 142 elif student_record.mode in ('ug_ft',): 146 xmldict['fceokene_acct'] = " 2822010008611"147 xmldict['bank_id'] = ' 8'143 xmldict['fceokene_acct'] = "6216801033" 144 xmldict['bank_id'] = '117' 148 145 else: 149 146 xmldict['fceokene_acct'] = "0000000000000" … … 154 151 <item_details detail_ref="%(detail_ref)s" college="FCE Okene" department="%(department)s" faculty="%(faculty)s"> 155 152 <item_detail item_id="1" item_name="FCEOkene School Fee" item_amt="%(fceokene_amount)s" bank_id="%(bank_id)s" acct_num="%(fceokene_acct)s" /> 156 <item_detail item_id="2" item_name="FCEOkene Split" item_amt="%(fceokene_split)s" bank_id=" 8" acct_num="2822040000037" />153 <item_detail item_id="2" item_name="FCEOkene Split" item_amt="%(fceokene_split)s" bank_id="117" acct_num="6216801058" /> 157 154 <item_detail item_id="3" item_name="BT" item_amt="%(bt_amount)s" bank_id="89" acct_num="0061001000021095" /> 158 155 </item_details> … … 172 169 173 170 return context.goto_interswitch_form(info=info) 174
Note: See TracChangeset for help on using the changeset viewer.