Changeset 14329 for main/waeup.kwarapoly


Ignore:
Timestamp:
9 Dec 2016, 06:46:14 (8 years ago)
Author:
Henrik Bettermann
Message:

Change bank account.

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

Legend:

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

    r14257 r14329  
    5555#All special payments moved to GTBank on 15-10-2015
    5656SPECIAL_PAYMENT_PARAMS = {
    57     'certificate': ('111', 200.0, 300.0, '0106259811', '10'),
    58     'state_result': ('112', 200.0, 300.0, '0106259811', '10'),
    59     'transcript_local': ('113', 200.0, 300.0, '0106259811', '10'),
    60     'transcript_foreign': ('114', 200.0, 300.0, '0106259811', '10'),
    61     'ver_result': ('115', 200.0, 300.0, '0106259811', '10'),
    62     'change_course': ('116', 200.0, 300.0, '0106259811', '10'),
    63     'change_inst': ('117', 200.0, 300.0, '0106259811', '10'),
    64     'jamb_reject': ('118', 200.0, 300.0, '0106259811', '10'),
    65     'cert_of_cert': ('119', 200.0, 300.0, '0106259811', '10'),
    66     'ref_let': ('120', 200.0, 300.0, '0106259811', '10'),
    67     'proc_cert': ('121', 200.0, 300.0, '0106259811', '10'),
    68     'loss_idcard': ('122', 6.0, 9.0, '0106259811', '10'),
    69     'loss_examcard': ('123', 3.0, 4.5, '0106259811', '10'),
    70     'loss_result': ('124', 200.0, 300.0, '0106259811', '10'),
    71     'loss_receipt': ('125', 200.0, 300.0, '0106259811', '10'),
    72     'loss_clearance': ('126', 200.0, 300.0, '0106259811', '10'),
    73     'conv_brochure': ('127', 200.0, 300.0, '0106259811', '10'),
    74     'hnd_certificate': ('128', 200.0, 300.0, '0106259811', '10'),
    75     'hnd_state_result': ('129', 200.0, 300.0, '0106259811', '10'),
    76     'hnd_transcript_local': ('130', 200.0, 300.0, '0106259811', '10'),
    77     'hnd_transcript_foreign': ('131', 200.0, 300.0, '0106259811', '10'),
    78     'staff_loss_idcard': ('132', 6.0, 9.0, '0106259811', '10'),
    79     'hnd_conv_brochure': ('133', 200.0, 300.0, '0106259811', '10'),
    80     'pgd_state_result': ('134', 200.0, 300.0, '0106259811', '10'),
    81     'pgd_conv_brochure': ('135', 200.0, 300.0, '0106259811', '10'),
    82     'pgd_certificate': ('136', 200.0, 300.0, '0106259811', '10'),
    83     'log_book': ('137', 3.0, 4.5, '0106259811', '10'),
    84     'pgd_transcript_foreign': ('138', 200.0, 300.0, '0106259811', '10'),
    85     'pgd_transcript_local': ('139', 200.0, 300.0, '0106259811', '10'),
    86     'jamb_regularization': ('140', 200.0, 300.0, '0106259811', '10'),
    87     'utme_registration': ('142', 6.0, 9.0, '0106259811', '10'),
    88     'utme_cbt': ('143', 6.0, 9.0, '0106259811', '10'),
    89     'nysc_id_card': ('144', 6.0, 9.0, '0106259811', '10'),
    90     'ijmb_result': ('147', 200.0, 300.0, '0106259811', '10'),
     57    'certificate': ('111', 200.0, 300.0, '0838798044', '76'),
     58    'state_result': ('112', 200.0, 300.0, '0838798044', '76'),
     59    'transcript_local': ('113', 200.0, 300.0, '0838798044', '76'),
     60    'transcript_foreign': ('114', 200.0, 300.0, '0838798044', '76'),
     61    'ver_result': ('115', 200.0, 300.0, '0838798044', '76'),
     62    'change_course': ('116', 200.0, 300.0, '0838798044', '76'),
     63    'change_inst': ('117', 200.0, 300.0, '0838798044', '76'),
     64    'jamb_reject': ('118', 200.0, 300.0, '0838798044', '76'),
     65    'cert_of_cert': ('119', 200.0, 300.0, '0838798044', '76'),
     66    'ref_let': ('120', 200.0, 300.0, '0838798044', '76'),
     67    'proc_cert': ('121', 200.0, 300.0, '0838798044', '76'),
     68    'loss_idcard': ('122', 6.0, 9.0, '0838798044', '76'),
     69    'loss_examcard': ('123', 3.0, 4.5, '0838798044', '76'),
     70    'loss_result': ('124', 200.0, 300.0, '0838798044', '76'),
     71    'loss_receipt': ('125', 200.0, 300.0, '0838798044', '76'),
     72    'loss_clearance': ('126', 200.0, 300.0, '0838798044', '76'),
     73    'conv_brochure': ('127', 200.0, 300.0, '0838798044', '76'),
     74    'hnd_certificate': ('128', 200.0, 300.0, '0838798044', '76'),
     75    'hnd_state_result': ('129', 200.0, 300.0, '0838798044', '76'),
     76    'hnd_transcript_local': ('130', 200.0, 300.0, '0838798044', '76'),
     77    'hnd_transcript_foreign': ('131', 200.0, 300.0, '0838798044', '76'),
     78    'staff_loss_idcard': ('132', 6.0, 9.0, '0838798044', '76'),
     79    'hnd_conv_brochure': ('133', 200.0, 300.0, '0838798044', '76'),
     80    'pgd_state_result': ('134', 200.0, 300.0, '0838798044', '76'),
     81    'pgd_conv_brochure': ('135', 200.0, 300.0, '0838798044', '76'),
     82    'pgd_certificate': ('136', 200.0, 300.0, '0838798044', '76'),
     83    'log_book': ('137', 3.0, 4.5, '0838798044', '76'),
     84    'pgd_transcript_foreign': ('138', 200.0, 300.0, '0838798044', '76'),
     85    'pgd_transcript_local': ('139', 200.0, 300.0, '0838798044', '76'),
     86    'jamb_regularization': ('140', 200.0, 300.0, '0838798044', '76'),
     87    'utme_registration': ('142', 6.0, 9.0, '0838798044', '76'),
     88    'utme_cbt': ('143', 6.0, 9.0, '0838798044', '76'),
     89    'nysc_id_card': ('144', 6.0, 9.0, '0838798044', '76'),
     90    'ijmb_result': ('147', 200.0, 300.0, '0838798044', '76'),
    9191    }
    9292
     
    124124        gateway_amt = GATEWAY_AMT
    125125        self.pay_item_id = '000'
    126         xmldict['institution_acct'] = "0106259811"
    127         xmldict['institution_bank_id'] = "10"
     126        xmldict['institution_acct'] = '0838798044'
     127        xmldict['institution_bank_id'] = '76'
    128128        if self.context.p_category == 'schoolfee' \
    129129            or self.context.p_category.startswith('carryover'):
     
    133133            if not student.current_mode.endswith('_we'):
    134134                if xmldict['faculty'] in ('CPGS',):
    135                     xmldict['institution_acct'] = "0106259811"   
    136                     xmldict['institution_bank_id'] = '10'
     135                    xmldict['institution_acct'] = '0838798044'
     136                    xmldict['institution_bank_id'] = '76'
    137137                elif xmldict['faculty'] in ('IAS',):
    138                     xmldict['institution_acct'] = "0106259811" 
    139                     xmldict['institution_bank_id'] = '10'
     138                    xmldict['institution_acct'] = '0838798044'
     139                    xmldict['institution_bank_id'] = '76'
    140140                    self.pay_item_id = '107'
    141141                elif xmldict['faculty'] in ('IES',):
    142                     xmldict['institution_acct'] = "0106259811"
    143                     xmldict['institution_bank_id'] = '10'
     142                    xmldict['institution_acct'] = '0838798044'
     143                    xmldict['institution_bank_id'] = '76'
    144144                    self.pay_item_id = '109'
    145145                elif xmldict['faculty'] in ('IFMS',):
    146                     xmldict['institution_acct'] = "0106259811"
    147                     xmldict['institution_bank_id'] = '10'
     146                    xmldict['institution_acct'] = '0838798044'
     147                    xmldict['institution_bank_id'] = '76'
    148148                    self.pay_item_id = '106'
    149149                elif xmldict['faculty'] in ('IOT',):
    150                     xmldict['institution_acct'] = "0106259811"   
    151                     xmldict['institution_bank_id'] = '10'
     150                    xmldict['institution_acct'] = '0838798044'
     151                    xmldict['institution_bank_id'] = '76'
    152152                    self.pay_item_id = '110'
    153153                elif xmldict['faculty'] in ('IICT',):
    154                     xmldict['institution_acct'] = "0106259811"
    155                     xmldict['institution_bank_id'] = '10'
     154                    xmldict['institution_acct'] = '0838798044'
     155                    xmldict['institution_bank_id'] = '76'
    156156                    self.pay_item_id = '108'
    157157            else:
    158                 xmldict['institution_acct'] = "0106259811" 
    159                 xmldict['institution_bank_id'] = '10'
     158                xmldict['institution_acct'] = '0838798044'
     159                xmldict['institution_bank_id'] = '76'
    160160                #Introduce a pay_item_id for part-time for the first time on this portal
    161161                self.pay_item_id = '145'
     
    168168        elif 'maintenance' in self.context.p_category:
    169169            self.pay_item_id = '102'
    170             xmldict['institution_acct'] = "0106259811"
    171             xmldict['institution_bank_id'] = '10'
     170            xmldict['institution_acct'] = '0838798044'
     171            xmldict['institution_bank_id'] = '76'
    172172            dalash_amt = 0.0
    173173            provider_amt = 0.0
    174174        elif 'clearance' in self.context.p_category:
    175175            self.pay_item_id = '146'
    176             xmldict['institution_acct'] = "0106259811"
    177             xmldict['institution_bank_id'] = '10'
     176            xmldict['institution_acct'] = '0838798044'
     177            xmldict['institution_bank_id'] = '76'
    178178        else:
    179179            xmldict['institution_acct'] = "0000000000000"
     
    249249        xmldict['institution_bank_id'] = '00'
    250250        if self.applicant.applicant_id.startswith('hnd'):
    251             xmldict['institution_acct'] = '0106259811'
    252             xmldict['institution_bank_id'] = '10'
     251            xmldict['institution_acct'] = '0838798044'
     252            xmldict['institution_bank_id'] = '76'
    253253        elif self.applicant.applicant_id.startswith('nd'):
    254             xmldict['institution_acct'] = '0106259811'
    255             xmldict['institution_bank_id'] = '10'
     254            xmldict['institution_acct'] = '0838798044'
     255            xmldict['institution_bank_id'] = '76'
    256256        elif self.applicant.applicant_id.startswith('rmd'):
    257             xmldict['institution_acct'] = '0106259811'
    258             xmldict['institution_bank_id'] = '10'
     257            xmldict['institution_acct'] = '0838798044'
     258            xmldict['institution_bank_id'] = '76'
    259259        elif self.applicant.applicant_id.startswith('pgft'):
    260             xmldict['institution_acct'] = '0106259811'
    261             xmldict['institution_bank_id'] = '10'
     260            xmldict['institution_acct'] = '0838798044'
     261            xmldict['institution_bank_id'] = '76'
    262262        elif self.applicant.applicant_id.startswith('putme'):
    263             xmldict['institution_acct'] = '0106259811'
    264             xmldict['institution_bank_id'] = '10'
     263            xmldict['institution_acct'] = '0838798044'
     264            xmldict['institution_bank_id'] = '76'
    265265            self.pay_item_id = '104'
    266266        elif self.applicant.applicant_id.startswith('pre'):
    267             xmldict['institution_acct'] = '0106259811'
    268             xmldict['institution_bank_id'] = '10'
     267            xmldict['institution_acct'] = '0838798044'
     268            xmldict['institution_bank_id'] = '76'
    269269            provider_amt = 262.5
    270270            dalash_amt = 0.0
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py

    r14261 r14329  
    162162            self.browser.contents)
    163163        self.assertTrue(
    164             'item_name="School Fee" item_amt="2920000" bank_id="10" acct_num="0106259811"' in
     164            'item_name="School Fee" item_amt="2920000" bank_id="76" acct_num="0838798044"' in
    165165            self.browser.contents)
    166166        self.assertTrue(
     
    223223            self.browser.contents)
    224224        self.assertTrue(
    225             'item_name="Hostel Maintenance" item_amt="57600" bank_id="10" acct_num="0106259811"' in
     225            'item_name="Hostel Maintenance" item_amt="57600" bank_id="76" acct_num="0838798044"' in
    226226            self.browser.contents)
    227227
     
    248248            self.browser.contents)
    249249        self.assertTrue(
    250             'item_name="One Carry-Over" item_amt="270000" bank_id="10" acct_num="0106259811"' in
     250            'item_name="One Carry-Over" item_amt="270000" bank_id="76" acct_num="0838798044"' in
    251251            self.browser.contents)
    252252        self.assertTrue(
     
    547547        self.assertTrue(
    548548            '<item_detail item_id="1" item_name="Application" '
    549             'item_amt="253300" bank_id="10" acct_num="0106259811" />'
     549            'item_amt="253300" bank_id="76" acct_num="0838798044" />'
    550550            in self.browser.contents)
    551551
     
    559559        self.assertTrue(
    560560            '<item_detail item_id="1" item_name="Application" '
    561             'item_amt="253300" bank_id="10" acct_num="0106259811" />'
     561            'item_amt="253300" bank_id="76" acct_num="0838798044" />'
    562562            in self.browser.contents)
    563563        # Commission or bribe?
     
    580580        self.assertTrue(
    581581            '<item_detail item_id="1" item_name="Application" '
    582             'item_amt="303300" bank_id="10" acct_num="0106259811" />'
     582            'item_amt="303300" bank_id="76" acct_num="0838798044" />'
    583583            in self.browser.contents)
    584584        self.assertFalse('Dalash' in self.browser.contents)
     
    597597        self.assertTrue(
    598598            '<item_detail item_id="1" item_name="Application" '
    599             'item_amt="303300" bank_id="10" acct_num="0106259811" />'
     599            'item_amt="303300" bank_id="76" acct_num="0838798044" />'
    600600            in self.browser.contents)
    601601        self.assertFalse('Dalash' in self.browser.contents)
     
    618618        self.assertTrue(
    619619            '<item_detail item_id="1" item_name="Application" '
    620             'item_amt="253300" bank_id="10" acct_num="0106259811" />'
     620            'item_amt="253300" bank_id="76" acct_num="0838798044" />'
    621621            in self.browser.contents)
    622622        self.assertTrue(
     
    642642        self.assertTrue(
    643643            '<item_detail item_id="1" item_name="Application" '
    644             'item_amt="253300" bank_id="10" acct_num="0106259811" />'
     644            'item_amt="253300" bank_id="76" acct_num="0838798044" />'
    645645            in self.browser.contents)
    646646        delta = timedelta(days=8)
     
    692692        self.assertTrue(
    693693            '<item_detail item_id="1" item_name="ND Transcript (local)" '
    694             'item_amt="450000" bank_id="10" acct_num="0106259811" />'
     694            'item_amt="450000" bank_id="76" acct_num="0838798044" />'
    695695            in self.browser.contents)
    696696
     
    705705        self.assertTrue(
    706706            '<item_detail item_id="1" item_name="Log Book" '
    707             'item_amt="55444" bank_id="10" acct_num="0106259811" />'
     707            'item_amt="55444" bank_id="76" acct_num="0838798044" />'
    708708            in self.browser.contents)
    709709
Note: See TracChangeset for help on using the changeset viewer.