Ignore:
Timestamp:
30 Jul 2008, 12:24:50 (16 years ago)
Author:
Henrik Bettermann
Message:

use different bank accounts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/aaua/waeup_custom/pay_interswitch.py

    r3586 r3594  
    8282
    8383if True:
    84     info['action'] = "https://webpay.interswitchng.com/test_paydirect/webpay/pay.aspx"
     84    info['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx"
    8585else:
    8686    #pass
     
    137137xmldict['aaua_amount'] = "%d" % int(100*aaua_amount)
    138138xmldict['bt_amount'] = "%d" % int(100*bt_amount)
     139if student_record.mode.endswith('_pt'):
     140    xmldict['aaua_acct'] = "0321100000000046"
     141elif student_record.mode.endswith('_sw'):
     142    xmldict['aaua_acct'] = "0321100000000056"
     143else:
     144    xmldict['aaua_acct'] = "0000000000000000"
    139145
    140146
    141 xmltext = """
    142 <payment_item_detail>
     147xmltext = """<payment_item_detail>
    143148<item_details detail_ref="%(detail_ref)s" college="AAUA" department="%(department)s" faculty="%(faculty)s">
    144 <item_detail item_id="1" item_name="AAUA" item_amt="%(aaua_amount)s" bank_id="00" acct_num="0000000000000000" />
    145 <item_detail item_id="2" item_name="BT" item_amt="%(bt_amount)s" bank_id="00" acct_num="0000000000000000" />
     149<item_detail item_id="1" item_name="AAUA" item_amt="%(aaua_amount)s" bank_id="89" acct_num="%(aaua_acct)s" />
     150<item_detail item_id="2" item_name="BT" item_amt="%(bt_amount)s" bank_id="117" acct_num="6012015294" />
    146151</item_details>
    147 </payment_item_detail>
    148 """ % xmldict
     152</payment_item_detail>""" % xmldict
    149153
     154info['xml_data'] = """<input type="hidden" name="xml_data" value='%s'  />""" % xmltext
    150155
    151156args['Amount'] = "%d" % (total_amount)
     
    156161args['payment_params'] = 'college_split'
    157162#args['xml_data'] = ''
    158 args['xml_data'] = xmltext
     163#args['xml_data'] = xmltext   # info['xml_data']can be used instead
    159164info['args'] = args
     165
    160166return context.goto_interswitch_form(info=info)
    161167
Note: See TracChangeset for help on using the changeset viewer.