Changeset 3594


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

use different bank accounts

Location:
WAeUP_SRP/aaua
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/aaua/profiles/default/layouts/application_pume.xml

    r3592 r3594  
    512512    <element value="edit"/>
    513513   </property>
    514    <property name="hidden_layout_modes"/>
     514   <property name="hidden_layout_modes">
     515     <element value="create"/>
     516   </property>
    515517   <property name="hidden_readonly_layout_modes"/>
    516518   <property name="label_false">male</property>
     
    635637  <row>
    636638   <cell name="sex" ncols="2"/>
    637   </row> 
     639  </row>
    638640  <row>
    639641   <cell name="email" ncols="2"/>
  • WAeUP_SRP/aaua/waeup_custom/getPaymentsFolderInfo.py

    r3586 r3594  
    103103        start_pos = 6
    104104    url = row['url'] = "%s/p%s" % (payments_path,oid[start_pos:])
    105     row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees and payment.type == 'online' or str(member) in ('admin',)
    106     row['is_approvable'] = is_so and row['is_requeryable'] and payment.category == 'schoolfee' # does not make sense for maitenance
     105    row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees and not payment.resp_desc and payment.type == 'online'# or str(member) in ('admin',)  # customized too
     106    row['is_approvable'] = is_so and row['is_requeryable'] and payment.category == 'schoolfee' # does not make sense for maintenance
    107107    row['resp_desc'] = payment.resp_desc or 'Payment Process Interrupted'
    108108    row['trans_ref'] = payment.order_id
  • WAeUP_SRP/aaua/waeup_custom/goto_interswitch_form.pt

    r2824 r3594  
    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" />
     16     
    1417        <table>
    1518          <tr>
     
    4245               class="standalone"
    4346               name="goto_bank"
    44                value="Proceed to Payment Gateway"
     47               value="Proceed to Interswitch Payment Gateway"
    4548               />
    4649      </form>
  • 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.