- Timestamp:
- 21 Apr 2010, 05:46:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_aaua/getPaymentsFolderInfo.py
r3865 r5164 56 56 # begin customization 57 57 58 if review_state == 'cleared_and_validated': 59 info['payment_method'] = "online_payment" 60 #elif review_state == 'cleared_and_validated' and session == '07': 61 # info['payment_method'] = "sc_payment" 62 elif review_state == 'returning' and info['next_session'] != session: 63 info['payment_method'] = "online_payment" 58 if review_state in ('cleared_and_validated','returning',): 59 if session in ('07','06',): 60 info['payment_method'] = "online_payment" 61 else: 62 info['payment_method'] = "first_instalment" 63 else: 64 second_instalment_records = aq_payments(Eq('student_id',student_id) & Eq('category','schoolfee2') & Eq('session_id',session) & Eq('status','paid')) 65 if not second_instalment_records: 66 info['payment_method'] = "second_instalment" 67 else: 68 pass 64 69 info['prod_id'] = '105' 65 70 … … 99 104 row['trans_ref'] = payment.order_id 100 105 if row['is_requeryable']: 101 row['callback_url'] = "%(url)s/interswitch_cb" % row 102 # if payment.category == 'schoolfee': 103 # row['callback_url'] = "%(url)s/interswitch_cb" % row 106 if payment.category == 'schoolfee': 107 row['callback_url'] = "%(url)s/interswitch_cb" % row 108 elif payment.category == 'schoolfee2': 109 row['callback_url'] = "%(url)s/interswitch_cb2" % row 104 110 # elif payment.category == 'hostel_maintenance': 105 111 # row['callback_url'] = "%(url)s/interswitch_acco_cb" % row
Note: See TracChangeset for help on using the changeset viewer.