Ignore:
Timestamp:
17 Mar 2012, 10:16:07 (13 years ago)
Author:
Henrik Bettermann
Message:

Implement eTranzact payment and restructure change school fee payment.

Session 2011/2012: eTranzact and Interswitch payments only
Previous sessions: scratch card payments only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_uniben/getPaymentInfo.py

    r7900 r7901  
    3636payment = context.getContent()
    3737info['payment_doc'] = payment
     38info['is_etranzact_pmt'] = ie = payment.type == 'etranzact'
    3839info['is_online_pmt'] = io = payment.resp_code in ('0','00','AP','IP',)
    3940info['is_request_pmt'] = ir = payment.resp_code in ('RP',)
    4041info['is_scratchcard_pmt'] = isc =  payment.resp_code == 'SC'
    41 info['is_interrupted'] = ii = payment.resp_code == ''
    42 info['unknown_code'] = not (io or isc or ii or ir)
     42info['is_interrupted'] = ii = payment.resp_code == '' and not ie
     43info['unknown_code'] = not (io or isc or ii or ir or ie)
    4344info['resp_code'] = payment.resp_code
    4445info['resp_desc'] = payment.resp_desc
Note: See TracChangeset for help on using the changeset viewer.