Changeset 3586 for WAeUP_SRP/aaua/waeup_custom
- Timestamp:
- 27 Jul 2008, 10:09:17 (17 years ago)
- Location:
- WAeUP_SRP/aaua/waeup_custom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/aaua/waeup_custom/getPaymentsFolderInfo.py
r3312 r3586 71 71 elif review_state == 'returning' and info['next_session'] != session: 72 72 info['payment_method'] = "online_payment" 73 info['prod_id'] = ' 83'73 info['prod_id'] = '105' 74 74 75 75 # end customization -
WAeUP_SRP/aaua/waeup_custom/pay_interswitch.py
r2913 r3586 48 48 return context.interswitch_form(info=info) 49 49 50 info['site_id'] = ' 83'50 info['site_id'] = '105' 51 51 info['currency_id'] = '566' 52 pay_item_id = "10500" 52 53 53 pay_item_id = "8302"54 54 #info['type_code'] = sbrain.course #type_code is redundant and will be removed soon 55 55 info['bank'] = '' … … 67 67 now = DateTime.DateTime() 68 68 info['date'] = now 69 info['pay_ship_to'] = " Federal College of Education Okene"69 info['pay_ship_to'] = "Adekunle Ajasin University" 70 70 timestamp = "%d" % int(now.timeTime()*1000) 71 71 info['order_id'] = "%s%s" % (student_id[1:],timestamp) … … 82 82 83 83 if True: 84 info['action'] = "https://webpay.interswitchng.com/ paydirect/webpay/pay.aspx"84 info['action'] = "https://webpay.interswitchng.com/test_paydirect/webpay/pay.aspx" 85 85 else: 86 86 #pass … … 128 128 args[arg] = info[field] 129 129 130 bt_amount = 4000 131 132 aaua_amount = amount - bt_amount 133 xmldict = {} 134 xmldict['detail_ref'] = args['txn_ref'] 135 xmldict['department'] = student_record.department 136 xmldict['faculty'] = student_record.faculty 137 xmldict['aaua_amount'] = "%d" % int(100*aaua_amount) 138 xmldict['bt_amount'] = "%d" % int(100*bt_amount) 139 140 141 xmltext = """ 142 <payment_item_detail> 143 <item_details detail_ref="%(detail_ref)s" college="AAUA" department="%(department)s" faculty="%(faculty)s"> 144 <item_detail item_id="1" item_name="AAUA" item_amt="%(aaua_amount)s" bank_id="00" acct_num="0000000000000000" /> 145 <item_detail item_id="2" item_name="BT" item_amt="%(bt_amount)s" bank_id="00" acct_num="0000000000000000" /> 146 </item_details> 147 </payment_item_detail> 148 """ % xmldict 149 150 130 151 args['Amount'] = "%d" % (total_amount) 131 args['site_name'] = " fceokene.waeup.org"152 args['site_name'] = "aaua.waeup.org" 132 153 args['cust_name_desc'] = "Student Name" 133 154 args['pay_item_id'] = pay_item_id 134 args['pay_item_name'] = "FCEOKENE Tuition Payments" 135 args['payment_params'] = 'switch_college_split' 136 args['xml_data'] = '' 155 args['pay_item_name'] = "AAUA Tuition Payments" 156 args['payment_params'] = 'college_split' 157 #args['xml_data'] = '' 158 args['xml_data'] = xmltext 137 159 info['args'] = args 138 160 return context.goto_interswitch_form(info=info) 161
Note: See TracChangeset for help on using the changeset viewer.