Changeset 6955 for WAeUP_SRP/trunk/skins
- Timestamp:
- 26 Oct 2011, 08:04:39 (13 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_futminna
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_futminna/interswitch_form_accept.pt
r6910 r6955 35 35 <tr> 36 36 <td > 37 TotalAmount:37 Amount: 38 38 </td> 39 39 <td> Naira <span tal:content="info/amount" /></td> 40 </tr> 41 <tr> 42 <td > 43 Surcharge: 44 </td> 45 <td> Naira <span tal:content="info/surcharge" /></td> 40 46 </tr> 41 47 </table> -
WAeUP_SRP/trunk/skins/waeup_futminna/pay_interswitch_accept.py
r6910 r6955 70 70 info['surcharge'] = 300 71 71 info['acceptance_fee'] = 20000 72 info['amount'] = amount = info['acceptance_fee'] + info['surcharge']73 total_amount = 100* int(amount)72 info['amount'] = amount = info['acceptance_fee'] 73 total_amount = 100*(int(amount) + info['surcharge']) 74 74 75 75 if student_id is None: … … 80 80 81 81 info['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx" 82 info['action'] = "https://testwebpay.interswitchng.com/test_paydirect/webpay/pay.aspx" 82 83 83 84 if "payments" not in student.objectIds(): … … 120 121 121 122 122 interswitch_amount = 300123 fut_amount = amount - interswitch_amount124 125 123 xmldict = {} 126 124 xmldict['detail_ref'] = args['txn_ref'] … … 128 126 xmldict['level'] = student_record.level 129 127 xmldict['faculty'] = student_record.faculty 130 xmldict['fut_amount'] = "%d" % int(100*fut_amount)128 xmldict['fut_amount'] = 100*amount 131 129 132 130 … … 149 147 info['args'] = args 150 148 151 return context.goto_interswitch_form (info=info)149 return context.goto_interswitch_form_accept(info=info)
Note: See TracChangeset for help on using the changeset viewer.