Changeset 2153
- Timestamp:
- 23 Aug 2007, 12:57:22 (17 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_epayment
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py
r2152 r2153 52 52 info['query_url'] = "https://webpay.interswitchng.com/paydirect/services/TransactionQueryURL.aspx" 53 53 review_state = info['review_state'] = s_brain.review_state 54 if s_brain.mode.endswith('_pt'): 54 parttime = s_brain.mode.endswith('_pt') 55 fulltime = s_brain.mode.endswith('_ft') 56 online_payment = False 57 sc_payment = False 58 if parttime and review_state in ('cleared_and_validated','returning'): 55 59 online_payment = True 56 el se:57 online_payment = review_state == 'cleared_and_validated'60 elif fulltime and review_state == 'returning': 61 sc_payment = True 58 62 info['online_payment'] = online_payment 63 info['sc_payment'] = sc_payment 59 64 session = s_brain.session 60 65 info['next_session'], info['next_session_str'] = context.getNextSessionId(session) -
WAeUP_SRP/trunk/skins/waeup_epayment/getSchoolFee.py
r2151 r2153 190 190 f = 0 191 191 d['new'] = session_fees[brain.session][f] 192 d['returning'] = session_fees[brain.session][f]192 d['returning'] = 'not set' 193 193 d['description'] = "School Fee for Session %s" % context.sessions_voc(key=brain.session) 194 194 if pt_fees.has_key(brain.course): 195 195 d = pt_fees[brain.course] 196 d['description'] = "School Fee for Session %s %s" % (context.sessions_voc(key=brain.session),196 d['description'] = "School Fee for Session %s, %s" % (context.sessions_voc(key=brain.session), 197 197 d['description']) 198 198 return d -
WAeUP_SRP/trunk/skins/waeup_epayment/interswitch_form.pt
r2151 r2153 5 5 <br /> 6 6 <span tal:condition="not: info/payment_possible"> 7 No payment Information for your course available.7 No payment information for your course available. 8 8 </span> 9 9 <span tal:condition="info/payment_possible"> -
WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py
r2135 r2153 36 36 session = s_brain.session 37 37 next_session, next_session_str = context.getNextSessionId(session) 38 amount,description = context.getSchoolFee(s_brain.faculty,session)39 38 validate = request.has_key("cpsdocument_create_button") 40 39 res,psm,ds = lt.renderLayout(layout_id= 'student_schoolfee', … … 87 86 except: 88 87 cost = "n/a" 89 88 90 89 if not hasattr(payments,p_id): 91 90 now = DateTime.DateTime() -
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 -
WAeUP_SRP/trunk/skins/waeup_epayment/payments_view.pt
r2151 r2153 64 64 /> 65 65 </form> 66 <form tal:condition=" not: info/online_payment"66 <form tal:condition="info/sc_payment" 67 67 tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group"> 68 68 <input type="hidden" name="paid_session"
Note: See TracChangeset for help on using the changeset viewer.