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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.