Changeset 14795 for main/waeup.uniben/trunk/src
- Timestamp:
- 13 Aug 2017, 06:00:51 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/remita/browser.py
r14792 r14795 28 28 29 29 # Temporarily we can use the test portal like in kofacustom.nigeria 30 MERCHANTID = '2 547916'31 HOST = ' www.remitademo.net'32 HTTPS = False33 API_KEY = ' 1946'30 MERCHANTID = '2067163382' 31 HOST = 'login.remita.net' 32 HTTPS = True 33 API_KEY = '309418' 34 34 SERVICETYPEID = '4430731' 35 35 … … 43 43 https = HTTPS 44 44 api_key = API_KEY 45 serviceTypeId = SERVICETYPEID46 45 47 46 class CustomRemitaVerifyPaymentStatusPageStudent( … … 63 62 https = HTTPS 64 63 api_key = API_KEY 65 serviceTypeId = SERVICETYPEID66 64 67 65 init_url = '/remita/ecomm/split/init.reg' … … 69 67 70 68 @property 71 def lineitems(self): 69 def serviceTypeId(self): 70 student = self.context.student 71 if self.context.p_category == 'schoolfee': 72 if student.current_mode.startswith('dp_'): 73 return '2067090482' 74 if student.current_mode == 'pg_ft': 75 return '2067090691' 76 if student.current_mode == 'pg_pt': 77 return '2067091011' 78 if student.current_mode == 'ug_sw': 79 return '2066967204' 80 if student.current_mode == 'ug_ft': 81 return '2067091395' 82 if student.current_mode == 'ug_pt': 83 return '2067091679' 84 if student.faccode == 'JUPEB': 85 return '1946888188' 86 return '' 87 88 @property 89 def demo_lineitems(self): 72 90 ba1 = self.context.amount_auth / 2 73 91 ba2 = self.context.amount_auth / 2 … … 88 106 89 107 @property 90 def li ve_lineitems(self):108 def lineitems(self): 91 109 provider_amt = 0.0 92 110 if self.context.p_category == 'schoolfee' and \ … … 134 152 https = HTTPS 135 153 api_key = API_KEY 136 serviceTypeId = SERVICETYPEID137 154 138 155 class CustomRemitaVerifyPaymentStatusPageApplicant( … … 154 171 https = HTTPS 155 172 api_key = API_KEY 156 serviceTypeId = SERVICETYPEID157 173 158 174 init_url = '/remita/ecomm/split/init.reg' 159 175 action = 'http://www.remitademo.net/remita/ecomm/finalize.reg' 176 177 @property 178 def serviceTypeId(self): 179 return SERVICETYPEID 160 180 161 181 @property
Note: See TracChangeset for help on using the changeset viewer.