Changeset 3594 for WAeUP_SRP/aaua/waeup_custom/pay_interswitch.py
- Timestamp:
- 30 Jul 2008, 12:24:50 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/aaua/waeup_custom/pay_interswitch.py
r3586 r3594 82 82 83 83 if True: 84 info['action'] = "https://webpay.interswitchng.com/ test_paydirect/webpay/pay.aspx"84 info['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx" 85 85 else: 86 86 #pass … … 137 137 xmldict['aaua_amount'] = "%d" % int(100*aaua_amount) 138 138 xmldict['bt_amount'] = "%d" % int(100*bt_amount) 139 if student_record.mode.endswith('_pt'): 140 xmldict['aaua_acct'] = "0321100000000046" 141 elif student_record.mode.endswith('_sw'): 142 xmldict['aaua_acct'] = "0321100000000056" 143 else: 144 xmldict['aaua_acct'] = "0000000000000000" 139 145 140 146 141 xmltext = """ 142 <payment_item_detail> 147 xmltext = """<payment_item_detail> 143 148 <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" />149 <item_detail item_id="1" item_name="AAUA" item_amt="%(aaua_amount)s" bank_id="89" acct_num="%(aaua_acct)s" /> 150 <item_detail item_id="2" item_name="BT" item_amt="%(bt_amount)s" bank_id="117" acct_num="6012015294" /> 146 151 </item_details> 147 </payment_item_detail> 148 """ % xmldict 152 </payment_item_detail>""" % xmldict 149 153 154 info['xml_data'] = """<input type="hidden" name="xml_data" value='%s' />""" % xmltext 150 155 151 156 args['Amount'] = "%d" % (total_amount) … … 156 161 args['payment_params'] = 'college_split' 157 162 #args['xml_data'] = '' 158 args['xml_data'] = xmltext 163 #args['xml_data'] = xmltext # info['xml_data']can be used instead 159 164 info['args'] = args 165 160 166 return context.goto_interswitch_form(info=info) 161 167
Note: See TracChangeset for help on using the changeset viewer.