Changeset 5193 for WAeUP_SRP/trunk/skins/waeup_aaue
- Timestamp:
- 14 May 2010, 11:38:09 (15 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_aaue
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_aaue/getPaymentsFolderInfo.py
r5190 r5193 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 ('returning',) and info['next_session'] != session: 59 if session in ('06','07','08'): 60 info['payment_method'] = "online_payment" 61 else: 62 info['payment_method'] = "first_instalment" 63 elif review_state in ('cleared_and_validated',): 64 if session in ('06','07','08','09'): 65 info['payment_method'] = "online_payment" 66 else: 67 info['payment_method'] = "first_instalment" 68 elif session in ('09','10','11',) and review_state in ('school_fee_paid','courses_registered','courses_validated',): 69 second_instalment_records = aq_payments(Eq('student_id',student_id) & Eq('category','schoolfee2') & Eq('session_id',session) & Eq('status','paid')) 70 if not second_instalment_records: 71 info['payment_method'] = "second_instalment" 72 else: 73 pass 64 74 info['prod_id'] = '119' 65 75 … … 82 92 row['title'] = "Invalid Payment, Naira %s, %s" % (payment.amount, 83 93 payment.date.strftime("%d/%m/%y %H:%M:%S")) 94 elif payment.type == 'request' and payment.resp_approved_amount: 95 row['title'] = "%s for Session %s, Naira %s, %s" % (vocabularies.payment_categories.get(payment.category), 96 vocabularies.sessions.get(payment.session_id), 97 payment.resp_approved_amount, 98 payment.date.strftime("%d/%m/%y %H:%M:%S")) 99 elif payment.type == 'request': 100 row['title'] = "%s for Session %s, %s" % (vocabularies.payment_categories.get(payment.category), 101 vocabularies.sessions.get(payment.session_id), 102 payment.date.strftime("%d/%m/%y %H:%M:%S")) 84 103 else: 85 104 row['title'] = "%s for Session %s, Naira %s, %s" % (vocabularies.payment_categories.get(payment.category), … … 100 119 row['trans_ref'] = payment.order_id 101 120 if row['is_requeryable']: 102 row['callback_url'] = "%(url)s/interswitch_cb" % row 121 if payment.category == 'schoolfee': 122 row['callback_url'] = "%(url)s/interswitch_cb" % row 123 elif payment.category == 'schoolfee2': 124 row['callback_url'] = "%(url)s/interswitch_cb2" % row 103 125 # if payment.category == 'schoolfee': 104 126 # row['callback_url'] = "%(url)s/interswitch_cb" % row … … 112 134 row['href'] = href 113 135 elif row['is_requestable']: 114 row['callback_url'] = "%(url)s/interswitch_request_cb" % row 136 if payment.category == 'schoolfee': 137 row['callback_url'] = "%(url)s/interswitch_request_cb" % row 138 elif payment.category == 'schoolfee2': 139 row['callback_url'] = "%(url)s/interswitch_request_cb2" % row 115 140 #href = '%(query_url)s' % info 116 141 href = "http://testwebpay.interswitchng.com/CollegepayService/TransactionQueryURL.aspx" 117 142 href += '?redirectURL=%(callback_url)s' % row 143 #href += '&productid=%(prod_id)s' % info 118 144 href += '&productid=53' 119 145 href += '&merchantref=ignore' 120 146 href += '&custNumber=%s' % student_id 121 147 href += '&session=%s' % info['next_session_str'] 122 href += '&semester=Semester 1' 148 href += '&semester=Semester 1' 149 if payment.category == 'schoolfee2': 150 href += '&semester=Semester 2' 123 151 row['href'] = href 124 152 if payment.status == 'paid':
Note: See TracChangeset for help on using the changeset viewer.