Ignore:
Timestamp:
7 Mar 2014, 18:12:42 (11 years ago)
Author:
Henrik Bettermann
Message:

Change account numbers.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/interswitch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py

    r10741 r11478  
    106106            if student.current_mode.endswith('_ft'):
    107107                self.pay_item_id = '5700'
    108                 if student.current_mode in ('ug_ft','de_ft','ct_ft','ume_ft'):
     108                if student.current_mode in ('ug_ft','de_ft','ume_ft'):
    109109                    xmldict['institution_acct'] = '2017506430'
    110110                    xmldict['institution_bank_id'] = '8'
    111                 elif student.current_mode in ('dp_ft'):
    112                     xmldict['institution_acct'] = '9201805071'
     111                elif student.current_mode in ('dp_ft','dp_pt','ct_pt','ct_ft'):
     112                    xmldict['institution_acct'] = '0009598853'
    113113                    xmldict['institution_bank_id'] = '17'
    114114                elif student.current_mode in ('pg_ft'):
    115                     xmldict['institution_acct'] = '5330832799'
     115                    xmldict['institution_acct'] = '6230033428'
    116116                    xmldict['institution_bank_id'] = '51'
    117117            elif student.current_mode.endswith('_pt'):
    118118                self.pay_item_id = '5701'
    119                 if student.current_mode in ('ug_pt','de_pt','ct_pt'):
     119                if student.current_mode in ('ug_pt','de_pt'):
    120120                    xmldict['institution_acct'] = '0122009929'
    121121                    xmldict['institution_bank_id'] = '16'
    122                 elif student.current_mode in ('dp_pt'):
    123                     xmldict['institution_acct'] = '9201805071'
    124                     xmldict['institution_bank_id'] = '17'
    125122                elif student.current_mode in ('pg_pt'):
    126                     xmldict['institution_acct'] = '0031716047'
    127                     xmldict['institution_bank_id'] = '10'
     123                    xmldict['institution_acct'] = '1013766956'
     124                    xmldict['institution_bank_id'] = '117'
    128125        elif self.context.p_category == 'clearance':
    129126            self.pay_item_id = '5702'
     
    132129                xmldict['institution_acct'] = '5210007943'
    133130                xmldict['institution_bank_id'] = '51'
    134             elif student.current_mode == 'pg_ft':
    135                 xmldict['institution_acct'] = '5330832799'
    136                 xmldict['institution_bank_id'] = '51'
    137             elif student.current_mode == 'pg_pt':
     131            else:
     132                xmldict['institution_bank_id'] = '10'
    138133                xmldict['institution_acct'] = '0031716047'
    139                 xmldict['institution_bank_id'] = '10'
    140             elif student.current_mode == 'dp_pt':
    141                 xmldict['institution_acct'] = '9201805071'
    142                 xmldict['institution_bank_id'] = '17'
    143             else:
    144                 xmldict['institution_bank_id'] = '7'
    145                 xmldict['institution_acct'] = '1003475516'
    146134        elif self.context.p_category == 'gown':
    147135            self.pay_item_id = '5704'
    148             xmldict['institution_bank_id'] = '7'
    149             xmldict['institution_acct'] = '1016232382'
     136            xmldict['institution_bank_id'] = '16'
     137            xmldict['institution_acct'] = '0122011401'
    150138        elif self.context.p_category.startswith('hostel_maintenance'):
    151139            self.pay_item_id = '5705'
    152             xmldict['institution_bank_id'] = '129'
    153             xmldict['institution_acct'] = '0014414547'
     140            xmldict['institution_bank_id'] = '17'
     141            xmldict['institution_acct'] = '0009598925'
    154142
    155143        xmldict['provider_amt'] = 100 * provider_amt
     
    261249    product_id = PRODUCT_ID
    262250    gateway_host = HOST
    263     gateway_url = URL
     251    gateway_url = URL 
  • main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py

    r10902 r11478  
    195195            self.browser.contents)
    196196        self.assertMatches(
    197             '...<item_detail item_id="1" item_name="Gown Hire Fee" item_amt="8400" bank_id="7" acct_num="1016232382" />...',
     197            '...<item_detail item_id="1" item_name="Gown Hire Fee" item_amt="8400" bank_id="16" acct_num="0122011401" />...',
    198198            self.browser.contents)
    199199        self.assertFalse(
     
    222222            self.browser.contents)
    223223        self.assertMatches(
    224             '...<item_detail item_id="1" item_name="Hostel Maintenance Fee" item_amt="800000" bank_id="129" acct_num="0014414547" />...',
     224            '...<item_detail item_id="1" item_name="Hostel Maintenance Fee" item_amt="800000" bank_id="17" acct_num="0009598925" />...',
    225225            self.browser.contents)
    226226        self.assertFalse(
Note: See TracChangeset for help on using the changeset viewer.