Changeset 3748 for WAeUP_SRP/trunk
- Timestamp:
- 31 Oct 2008, 07:47:25 (16 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_fceoyo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_fceoyo/goto_interswitch_form.pt
r3714 r3748 12 12 <input type="hidden" tal:attributes="name python:arg[0];value python:arg[1]" /> 13 13 </span> 14 15 <span tal:replace = "structure info/xml_data" /> 16 14 17 <table> 15 18 <tr> … … 42 45 class="standalone" 43 46 name="goto_bank" 44 value="Proceed to Payment Gateway"47 value="Proceed to Interswitch Payment Gateway" 45 48 /> 46 49 </form> -
WAeUP_SRP/trunk/skins/waeup_fceoyo/pay_interswitch.py
r3743 r3748 71 71 info['order_id'] = "%s%s" % (student_id[1:],timestamp) 72 72 p_id = "p%s" % timestamp 73 73 info['surcharge'] = interswitch_amount = 300 74 info['amount'] = amount = fee_dict['all'] 74 75 75 76 if student_id is None: … … 109 110 p_id) 110 111 111 info['amount'] = amount = fee_dict['all'] 112 112 113 113 114 … … 128 129 bt_amount = 1750 129 130 fceoyo_split = 750 130 info['surcharge'] = interswitch_amount = 300 131 131 132 #getSchoolFee provides pure school fee, the fees have to be added 132 133 total_amount = 100* (amount + interswitch_amount + bt_amount + fceoyo_split) … … 137 138 xmldict['department'] = student_record.department 138 139 xmldict['faculty'] = student_record.faculty 139 xmldict['amount'] = "%d" % 100*amount140 xmldict['bt_amount'] = "%d" % 100*bt_amount140 xmldict['amount'] = "%d" % int(100*amount) 141 xmldict['bt_amount'] = "%d" % int(100*bt_amount) 141 142 142 143 if student_record.mode in ('ug_sw','prence',): … … 150 151 xmldict['bank_id'] = '0' 151 152 152 xmldict['fceoyo_split'] = "%d" % 100*fceoyo_split 153 xmldict['fceoyo_split'] = "%d" % int(100*fceoyo_split) 154 153 155 154 156 xmltext = """<payment_item_detail> 155 <item_details detail_ref="%(detail_ref)s" college="fceoyo" department="%(department)s" faculty="%(faculty)s" >156 <item_detail item_id="1" item_name=" fceoyo" item_amt="%(amount)s" bank_id="%(bank_id)s" acct_num="%(fceoyo_acct)s" />157 <item_detail item_id="2" item_name=" fceoyo_split" item_amt="%(fceoyo_split)s" bank_id="125" acct_num="1681001000119" />158 <item_detail item_id=" 2" item_name="BT" item_amt="%(bt_amount)s" bank_id="89" acct_num="0061001000021095" />157 <item_details detail_ref="%(detail_ref)s" college="fceoyo" department="%(department)s" faculty="%(faculty)s" > 158 <item_detail item_id="1" item_name="FCEOyo School Fee" item_amt="%(amount)s" bank_id="%(bank_id)s" acct_num="%(fceoyo_acct)s" /> 159 <item_detail item_id="2" item_name="FCEOyo Split" item_amt="%(fceoyo_split)s" bank_id="125" acct_num="1681001000119" /> 160 <item_detail item_id="3" item_name="BT" item_amt="%(bt_amount)s" bank_id="89" acct_num="0061001000021095" /> 159 161 </item_details> 160 162 </payment_item_detail>""" % xmldict
Note: See TracChangeset for help on using the changeset viewer.