Ignore:
Timestamp:
18 Dec 2018, 07:45:14 (6 years ago)
Author:
Henrik Bettermann
Message:

Enable Remita payment gateway.

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

Legend:

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

    r15144 r15271  
    2424    InterswitchPaymentVerifyWebservicePageStudent,
    2525    InterswitchPageStudent, InterswitchPageApplicant,
     26    module_activated,
    2627    )
    2728from waeup.fceokene.students.interfaces import ICustomStudentOnlinePayment
     
    3334PROVIDER_ACCT = '0773411069'
    3435PROVIDER_BANK_ID = '31'
    35 PROVIDER_ITEM_NAME = 'BT Education'
     36PROVIDER_ITEM_NAME = 'WAeAC'
    3637INSTITUTION_NAME = 'FCEOkene'
    3738INSTITUTION_ACCT = '2003670143'
     
    6263
    6364    def update(self):
     65        if not module_activated(self.context.student.current_session):
     66            return
    6467        error = self.init_update()
    6568        if error:
     
    122125
    123126    def update(self):
     127        if not module_activated(self.context.__parent__.__parent__.year):
     128            return
    124129        error = self.init_update()
    125130        if error:
  • main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/tests.py

    r14931 r15271  
    5050    def setUp(self):
    5151        super(InterswitchTestsStudents, self).setUp()
     52        self.app['configuration']['2004'].interswitch_enabled = True
    5253        self.certificate.study_mode = 'pd_ft'
    5354        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
     
    100101            in self.browser.contents)
    101102        self.assertTrue(
    102             'item_name="BT Education" item_amt="160000" bank_id="31" acct_num="0026781725"'
     103            'item_name="WAeAC" item_amt="160000" bank_id="31" acct_num="0773411069"'
    103104            in self.browser.contents)
    104105
     
    122123            in self.browser.contents)
    123124        self.assertTrue(
    124             'item_name="BT Education" item_amt="160000" bank_id="31" acct_num="0026781725"'
     125            'item_name="WAeAC" item_amt="160000" bank_id="31" acct_num="0773411069"'
    125126            in self.browser.contents)
    126127
Note: See TracChangeset for help on using the changeset viewer.