Changeset 13378


Ignore:
Timestamp:
2 Nov 2015, 08:48:45 (9 years ago)
Author:
Henrik Bettermann
Message:

Prepare basis for 2-school (PT and Regular) configuration.

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

Legend:

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

    r13376 r13378  
    3939CURRENCY = '566'
    4040GATEWAY_AMT = 250.0
    41 #QUERY_URL = 'https://webpay.interswitchng.com/paydirect/services/TransactionQueryURL.aspx'
    42 #QUERY_URL = 'https://testwebpay.interswitchng.com/test_paydirect/services/TransactionQueryURL.aspx'
    43 
    44 #POST_ACTION = 'https://webpay.interswitchng.com/paydirect/webpay/pay.aspx'
    45 #POST_ACTION = 'https://testwebpay.interswitchng.com/test_paydirect/webpay/pay.aspx'
    46 #POST_ACTION = 'https://stageserv.interswitchng.com/test_paydirect/pay'
    4741POST_ACTION = 'https://webpay.interswitchng.com/paydirect/pay'
    4842
    4943HOST = 'webpay.interswitchng.com'
    50 #HOST = 'stageserv.interswitchng.com'
    5144HTTPS = True
    5245
    5346URL = '/paydirect/services/TransactionQueryWs.asmx'
    54 #URL = '/test_paydirect/services/TransactionQueryWS.asmx'
    5547httplib.HTTPSConnection.debuglevel = 0
    5648
     
    165157
    166158        if self.context.p_category == 'schoolfee':
    167             if student.faccode == 'FCETA':
    168                 xmldict['institution_acct'] = '1190118227'
    169                 xmldict['institution_bank_id'] = '123'
    170             else:
    171                 xmldict['institution_bank_id'] = '7'
    172                 xmldict['institution_acct'] = '1014847058'
     159            xmldict['institution_bank_id'] = '7'
     160            xmldict['institution_acct'] = '1014847058'
    173161            if student.current_mode == 'found':
    174162                self.pay_item_id = '103'
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py

    r13374 r13378  
    109109        super(InterswitchTestsStudents, self).setUp()
    110110
    111     def test_interswitch_form_school_fees(self):
     111    def test_interswitch_form_pt_school_fees(self):
     112        self.certificate.study_mode = 'ug_pt'
    112113        self.student['studycourse'].entry_session = 2013
    113114        self.student['studycourse'].certificate.school_fee_1 = 51750.0
     
    143144        self.assertMatches('...Total Amount Authorized:...',
    144145                           self.browser.contents)
    145         self.assertEqual(self.student.current_mode, 'ug_ft')
     146        self.assertEqual(self.student.current_mode, 'ug_pt')
    146147        self.assertMatches(
    147148            '...<input type="hidden" name="amount" value="5175000" />...',
     
    152153
    153154
    154     def test_interswitch_form_acceptance_fees(self):
    155         self.app['configuration']['2004'].clearance_fee = 43050.0
     155    def test_interswitch_form_pt_acceptance_fees(self):
     156        self.certificate.study_mode = 'ug_pt'
     157        self.app['configuration']['2004'].clearance_fee_pt = 43050.0
    156158        # Manager can access InterswitchForm
    157159        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
Note: See TracChangeset for help on using the changeset viewer.