Changeset 11639 for main/kofacustom.nigeria
- Timestamp:
- 13 May 2014, 17:47:13 (11 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py
r11630 r11639 147 147 submit_button = _('Submit') 148 148 149 action = None 150 site_name = None 151 currency = None 152 pay_item_id = None 153 product_id = None 154 xml_data = None 155 149 156 def update(self): 150 157 #if self.context.p_state != 'unpaid': … … 160 167 self.redirect(self.url(self.context, '@@index')) 161 168 return 169 kofa_utils = getUtility(IKofaUtils) 162 170 self.amount_auth = 100 * self.context.amount_auth 163 171 xmldict = {} … … 168 176 xmldict['department'] = None 169 177 xmldict['faculty'] = None 170 self.category = getUtility(IKofaUtils).PAYMENT_CATEGORIES[self.context.p_category]171 tz = getUtility(IKofaUtils).tzinfo178 self.category = kofa_utils.PAYMENT_CATEGORIES[self.context.p_category] 179 tz = kofa_utils.tzinfo 172 180 self.local_date_time = to_timezone( 173 181 self.context.creation_date, tz).strftime("%Y-%m-%d %H:%M:%S %Z") … … 185 193 label = _('Submit data to CollegePAY (Interswitch Payment Gateway)') 186 194 submit_button = _('Submit') 195 196 action = None 197 site_name = None 198 currency = None 199 pay_item_id = None 200 product_id = None 201 xml_data = None 187 202 188 203 def update(self): -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/payments.py
r8863 r11639 47 47 return self.__parent__.__parent__ 48 48 49 NigeriaStudentOnlinePayment = attrs_to_fields(NigeriaStudentOnlinePayment) 49 NigeriaStudentOnlinePayment = attrs_to_fields(NigeriaStudentOnlinePayment, 50 omit=['display_item']) 50 51 51 52 class NigeriaStudentOnlinePaymentFactory(StudentOnlinePaymentFactory):
Note: See TracChangeset for help on using the changeset viewer.