Changeset 5599 for WAeUP_SRP


Ignore:
Timestamp:
30 Nov 2010, 07:51:27 (14 years ago)
Author:
Henrik Bettermann
Message:

Send xml split data.

Location:
WAeUP_SRP/trunk/skins/waeup_futminna
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_futminna/getInterswitchParams.py

    r5593 r5599  
    2828else:
    2929    d['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx"
     30
     31
    3032if paytype in ("HOM",):
    3133    d['callback_function'] = 'interswitch_cb'
     
    3941    d['category'] = 'hostel_maintenance'
    4042    d['item'] = paytype
    41     #d['payment_params'] = 'college_split'
    42     d['payment_params'] = '0'
     43   
     44    #Adding xml split data
     45    d['payment_params'] = 'college_split'
     46    xmldict = {}
     47    xmldict['detail_ref'] = student_record.id
     48    xmldict['department'] = student_record.department
     49    xmldict['faculty'] = student_record.faculty
     50    xmldict['fut_amount'] = "%s" % d['amount']
     51   
     52    xmltext = """<payment_item_detail>
     53    <item_details detail_ref="%(detail_ref)s" college="Federal University of Technology Minna" department="%(department)s" faculty="%(faculty)s">
     54    <item_detail item_id="1" item_name="Hostel Maintenance Fee" item_amt="%(fut_amount)s" bank_id="101" acct_num="0591301005175" />
     55    </item_details>
     56    </payment_item_detail>""" % xmldict
     57   
     58    d['xml_data'] = xmltext   
    4359
    4460return d
    45 
    46 
    47 
  • WAeUP_SRP/trunk/skins/waeup_futminna/goto_interswitch_form.pt

    r3783 r5599  
    1212          <input type="hidden" tal:attributes="name python:arg[0];value python:arg[1]" />
    1313      </span>         
    14      
    15       <span tal:replace = "structure info/xml_data" />
    1614     
    1715        <table>
Note: See TracChangeset for help on using the changeset viewer.