Ignore:
Timestamp:
21 May 2015, 17:05:42 (9 years ago)
Author:
Henrik Bettermann
Message:

To guarantee that cleared students pay both acceptance fees and
school fees, a school fee payment POST request to the Interswitch
CollegePAY payment gateway can only be sent if
acceptance/clearance fee has been successfully queried/paid
beforehand. This requirement applies to students in state 'cleared'
and entry_session greater than 2013 only, see ticket #119.

File:
1 edited

Legend:

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

    r12730 r12975  
    107107
    108108    def test_interswitch_form_school_fees(self):
     109        self.student['studycourse'].entry_session = 2013
    109110        self.app['configuration']['2004'].school_fee_1 = 51750.0
    110111        # Manager can access InterswitchForm
     
    128129        self.payment_url = self.browser.url
    129130        self.browser.getLink("CollegePAY", index=0).click()
     131        self.assertTrue(
     132            'Please pay acceptance fee first' in self.browser.contents)
     133        acc_payment = createObject('waeup.StudentOnlinePayment')
     134        acc_payment.p_state = 'paid'
     135        acc_payment.p_category = 'clearance'
     136        self.student['payments']['xyz'] = acc_payment
     137        self.browser.getLink("CollegePAY", index=0).click()
    130138        self.assertMatches('...<input type="hidden" name="pay_item_id" value="105" />...',
    131139                           self.browser.contents)
     
    139147            '...item_name="School Fee" item_amt="4600000" bank_id="7" acct_num="1014847058"...',
    140148            self.browser.contents)
     149
    141150
    142151    def test_interswitch_form_acceptance_fees(self):
Note: See TracChangeset for help on using the changeset viewer.