Changeset 2153 for WAeUP_SRP/trunk/skins/waeup_epayment/pay_interswitch.py
- Timestamp:
- 23 Aug 2007, 12:57:22 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/pay_interswitch.py
r2151 r2153 39 39 info['payment_possible'] = False 40 40 fee_dict = context.getSchoolFee(sbrain) 41 if not fee_dict: 41 fulltime = sbrain.mode.endswith('_ft') 42 #new = sbrain.entry_session == context.getSessionId()[-2:] 43 new = sbrain.review_state == 'cleared_and_validated' 44 returning = sbrain.review_state == 'returning' 45 if not fee_dict or (not new and fulltime) or not (new or returning): 42 46 return context.interswitch_form(info=info) 43 info['payment_possible'] = True44 47 info['site_id'] = '61' 45 48 info['currency_id'] = '566' 46 if sbrain.entry_session == context.getSessionId()[-2:]:49 if new: 47 50 amount = info['amount'] = fee_dict['new'] 51 elif returning: 52 amount = info['amount'] = fee_dict['returning'] 48 53 else: 49 amount = info['amount'] = fee_dict['returning']50 if sbrain.mode.endswith('_ft'):54 amount = info['amount'] = '0' 55 if fulltime: 51 56 pay_item_id = "6100" 52 57 info['type_code'] = sbrain.faculty … … 54 59 pay_item_id = "6101" 55 60 info['type_code'] = sbrain.course 61 info['payment_possible'] = True 56 62 info['type_description'] = fee_dict['description'] 57 63 info['pay_bill_to'] = sbrain.name
Note: See TracChangeset for help on using the changeset viewer.