Changeset 2798 for WAeUP_SRP/fceokene/waeup_custom/pay_interswitch.py
- Timestamp:
- 27 Nov 2007, 21:30:19 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/fceokene/waeup_custom/pay_interswitch.py
r2765 r2798 103 103 d = {} 104 104 d.update(info) 105 #from Products.zdb import set_trace;set_trace()106 105 payment.getContent().edit(mapping=d) 107 #wftool.doActionFor(payment,'close')108 #wftool.doActionFor(student,'pay_school_fee')109 106 info['callback_url'] = "%s/payments/%s/interswitch_cb?echo=%s" % (student.absolute_url(), 110 107 p_id, … … 125 122 args[arg] = info[field] 126 123 itotal = int(amount)*100 127 wema_amount = 10000128 provider_amount = 35000129 124 interswitch_amount = 15000 130 #uniben_amount = itotal - wema_amount - provider_amount - interswitch_amount 131 uniben_amount = itotal - interswitch_amount 132 xmldict = {} 133 xmldict['detail_ref'] = args['txn_ref'] 134 xmldict['department'] = sbrain.department 135 xmldict['faculty'] = sbrain.faculty 136 #xmldict['wema_amt'] = "%d" % wema_amount 137 #xmldict['provider_amt'] = "%d" % provider_amount 138 xmldict['uniben_amt'] = "%d" % uniben_amount 139 ##<item_detail item_id="2" item_name="WEMA" item_amt="%(wema_amt)s" bank_id="16" acct_num="48398023902" /> 140 ##<item_detail item_id="3" item_name="Portal Provider" item_amt="%(provider_amt)s" bank_id="47" acct_num="0980938209483" /> 141 xmltext = """ 142 <payment_item_detail> 143 <item_details detail_ref="%(detail_ref)s" college="FCEOKENE" department="%(department)s" 144 faculty="%(faculty)s"> 145 <item_detail item_id="1" item_name="FCEOKENE" item_amt="%(uniben_amt)s" bank_id="16" acct_num="384950902390" /> 146 </item_details> 147 </payment_item_detail> 148 """ % xmldict 149 #total = int(xmldict['uniben_amt'])+int(xmldict['wema_amt'])+int(xmldict['provider_amt']) 150 total = int(xmldict['uniben_amt']) 151 args['Amount'] = "%d" % (total + 15000) 125 total_amount = itotal + interswitch_amount 126 127 args['Amount'] = "%d" % (total_amount) 152 128 args['site_name'] = "fceokene.waeup.org" 153 129 args['cust_name_desc'] = "Student Name" … … 155 131 args['pay_item_name'] = "FCEOKENE Tuition Payments" 156 132 args['payment_params'] = 'switch_college_split' 157 #args['xml_data'] = xmltext % info158 133 args['xml_data'] = '' 159 134 info['args'] = args
Note: See TracChangeset for help on using the changeset viewer.