Changeset 6955 for WAeUP_SRP


Ignore:
Timestamp:
26 Oct 2011, 08:04:39 (13 years ago)
Author:
Henrik Bettermann
Message:

Fiddle with Interswitch surcharge which is, in contrast to school fee payment, not included in the FUTMinna amount.

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  
    3535          <tr>
    3636            <td >
    37             Total Amount:
     37            Amount:
    3838            </td>
    3939            <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>
    4046          </tr>
    4147        </table>
  • WAeUP_SRP/trunk/skins/waeup_futminna/pay_interswitch_accept.py

    r6910 r6955  
    7070info['surcharge'] = 300
    7171info['acceptance_fee'] = 20000
    72 info['amount'] = amount = info['acceptance_fee'] + info['surcharge']
    73 total_amount = 100*int(amount)
     72info['amount'] = amount = info['acceptance_fee']
     73total_amount = 100*(int(amount) + info['surcharge'])
    7474
    7575if student_id is None:
     
    8080
    8181info['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx"
     82info['action'] = "https://testwebpay.interswitchng.com/test_paydirect/webpay/pay.aspx"
    8283
    8384if "payments" not in student.objectIds():
     
    120121
    121122
    122 interswitch_amount = 300
    123 fut_amount = amount - interswitch_amount
    124 
    125123xmldict = {}
    126124xmldict['detail_ref'] = args['txn_ref']
     
    128126xmldict['level'] = student_record.level
    129127xmldict['faculty'] = student_record.faculty
    130 xmldict['fut_amount'] = "%d" % int(100*fut_amount)
     128xmldict['fut_amount'] = 100*amount
    131129
    132130
     
    149147info['args'] = args
    150148
    151 return context.goto_interswitch_form(info=info)
     149return context.goto_interswitch_form_accept(info=info)
Note: See TracChangeset for help on using the changeset viewer.