- Timestamp:
- 26 Oct 2011, 08:04:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.