Ignore:
Timestamp:
7 Nov 2015, 22:02:34 (9 years ago)
Author:
Henrik Bettermann
Message:

Use correct p_session value from payment ticket.

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

    r13407 r13408  
    137137
    138138        student = self.student
    139         current_session = student['studycourse'].current_session
     139        p_session = self.context.p_session
    140140        try:
    141             academic_session = grok.getSite()[
    142                 'configuration'][str(current_session)]
     141            academic_session = grok.getSite()['configuration'][str(p_session)]
    143142        except KeyError:
    144143            self.flash(_(u'Session configuration object is not available.'),
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py

    r13406 r13408  
    285285        acc_payment = createObject('waeup.StudentOnlinePayment')
    286286        acc_payment.p_state = 'unpaid'
     287        acc_payment.p_session = 2004
    287288        acc_payment.p_category = 'clearance'
    288289        acc_payment.p_id = 'xyz'
Note: See TracChangeset for help on using the changeset viewer.