Changeset 8276 for main/waeup.uniben/trunk
- Timestamp:
- 25 Apr 2012, 11:37:11 (13 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/interswitch
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py
r8274 r8276 228 228 student = self.student = self.context.getStudent() 229 229 certificate = getattr(self.student['studycourse'],'certificate',None) 230 self.amount_auth = 100 * self.context.amount_auth 230 231 xmldict = {} 231 232 if certificate is not None: … … 235 236 xmldict['department'] = None 236 237 xmldict['faculty'] = None 237 self.amount_special = 100 * (self.context.amount_auth - 150)238 238 self.category = payment_categories.getTermByToken( 239 239 self.context.p_category).title … … 285 285 xmldict['institution_acct'] = '0122012109' 286 286 xmldict['institution_bank_id'] = '16' 287 xmldict['institution_amt'] = self.amount_special - 100 * provider_amt287 xmldict['institution_amt'] = 100 * (self.amount_auth - provider_amt - 150) 288 288 xmldict['institution_item_name'] = self.context.p_category 289 289 xmldict['institution_name'] = INSTITUTION_NAME … … 320 320 return 321 321 self.applicant = self.context.__parent__ 322 self.amount_auth = 100 * self.context.amount_auth 322 323 xmldict = {} 323 324 self.category = payment_categories.getTermByToken( 324 325 self.context.p_category).title 325 # substract invisible Interswitch surcharge326 self.amount_special = 100 * (self.context.amount_auth - 150)327 326 self.local_date_time = str(self.context.creation_date) 328 327 self.site_redirect_url = self.url(self.context, 'request_webservice') -
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser_templates/applicant_goto_interswitch.pt
r8263 r8276 62 62 <input type="hidden" name="site_name" tal:attributes="value view/site_name" /> 63 63 <input type="hidden" name="local_date_time" tal:attributes="value view/local_date_time" /> 64 <input type="hidden" name="amount" tal:attributes="value view/amount_ special" />64 <input type="hidden" name="amount" tal:attributes="value view/amount_auth" /> 65 65 <input type="hidden" name="txn_ref" tal:attributes="value view/context/p_id" /> 66 66 <input type="hidden" name="pay_item_name" tal:attributes="value view/context/p_item" /> -
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser_templates/student_goto_interswitch.pt
r8263 r8276 62 62 <input type="hidden" name="site_name" tal:attributes="value view/site_name" /> 63 63 <input type="hidden" name="local_date_time" tal:attributes="value view/local_date_time" /> 64 <input type="hidden" name="amount" tal:attributes="value view/amount_ special" />64 <input type="hidden" name="amount" tal:attributes="value view/amount_auth" /> 65 65 <input type="hidden" name="txn_ref" tal:attributes="value view/context/p_id" /> 66 66 <input type="hidden" name="pay_item_name" tal:attributes="value view/context/p_item" /> -
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r8271 r8276 84 84 # has been reduced by the Interswitch fee of 150 Nairas 85 85 self.assertMatches( 86 '...<input type="hidden" name="amount" value=" 3985000.0" />...',86 '...<input type="hidden" name="amount" value="4000000.0" />...', 87 87 self.browser.contents) 88 88 … … 160 160 self.assertMatches('...Total Amount Authorized:...', 161 161 self.browser.contents) 162 # The total amount to be processed by Interswitch163 # has been reduced by the Interswitch fee of 150 Nairas164 162 self.assertMatches( 165 '...<input type="hidden" name="amount" value=" 85000.0" />...',163 '...<input type="hidden" name="amount" value="100000.0" />...', 166 164 self.browser.contents) 167 165
Note: See TracChangeset for help on using the changeset viewer.