Ignore:
Timestamp:
19 Oct 2016, 11:04:49 (8 years ago)
Author:
Henrik Bettermann
Message:

Change fees.

Activate acceptance fee payments.

Add IJMB result fee.

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

    r14074 r14218  
    8888    'utme_cbt': ('143', 6.0, 9.0, '0106259811', '10'),
    8989    'nysc_id_card': ('144', 6.0, 9.0, '0106259811', '10'),
     90    'ijmb_result': ('147', 200.0, 300.0, '0106259811', '10'),
    9091    }
    9192
     
    173174            dalash_amt = 0.0
    174175            provider_amt = 0.0
     176        elif 'clearance' in self.context.p_category:
     177            self.pay_item_id = '146'
     178            xmldict['institution_acct'] = "0106259811"
     179            xmldict['institution_bank_id'] = '10'
     180            dalash_amt = 200.0
     181            provider_amt = 300.0
    175182        else:
    176183            xmldict['institution_acct'] = "0000000000000"
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py

    r14074 r14218  
    110110        self.assertMatches('...Amount Authorized...',
    111111                           self.browser.contents)
    112         self.assertTrue('<span>40700.0</span>' in self.browser.contents)
     112        self.assertTrue('<span>55500.0</span>' in self.browser.contents)
    113113        self.payment_url = self.browser.url
    114114
     
    144144        self.assertMatches('...Amount Authorized...', self.browser.contents)
    145145        self.assertTrue(
    146             '<span>31500.0</span>' in self.browser.contents)
     146            '<span>42500.0</span>' in self.browser.contents)
    147147        self.payment_url = self.browser.url
    148148
     
    159159                           self.browser.contents)
    160160        self.assertTrue(
    161             '<input type="hidden" name="amount" value="3150000" />' in
    162             self.browser.contents)
    163         self.assertTrue(
    164             'item_name="School Fee" item_amt="2820000" bank_id="10" acct_num="0106259811"' in
     161            '<input type="hidden" name="amount" value="4250000" />' in
     162            self.browser.contents)
     163        self.assertTrue(
     164            'item_name="School Fee" item_amt="3920000" bank_id="10" acct_num="0106259811"' in
    165165            self.browser.contents)
    166166        self.assertTrue(
     
    386386        self.browser.open(self.payments_path + '/xyz')
    387387        self.browser.getLink("CollegePAY", index=0).click()
    388         self.assertTrue('<input type="hidden" name="pay_item_id" value="000" />'
     388        self.assertTrue('<input type="hidden" name="pay_item_id" value="146" />'
    389389                           in self.browser.contents)
    390390        self.assertMatches('...Total Amount Authorized:...',
Note: See TracChangeset for help on using the changeset viewer.