Changeset 14790 for main/kofacustom.nigeria/trunk/src
- Timestamp:
- 10 Aug 2017, 06:43:59 (7 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/applicantsbrowser.py
r14779 r14790 33 33 from kofacustom.nigeria.remita.studentsbrowser import module_activated 34 34 35 from kofacustom.nigeria.remita.tests import ( 36 MERCHANTID, HOST, HTTPS, API_KEY, SERVICETYPEID) 37 35 38 grok.templatedir('browser_templates') 36 39 … … 99 102 100 103 # Here we use Remita test portal data 101 merchantId = '2547916'102 host = 'www.remitademo.net'103 https = False104 api_key = '1946'104 merchantId = MERCHANTID 105 host = HOST 106 https = HTTPS 107 api_key = API_KEY 105 108 106 109 def update(self): … … 152 155 153 156 # Here we use Remita test portal data 154 merchantId = '2547916'155 host = 'www.remitademo.net'156 https = False157 api_key = '1946'157 merchantId = MERCHANTID 158 host = HOST 159 https = HTTPS 160 api_key = API_KEY 158 161 159 162 def update(self): … … 206 209 label = _('Pay via Remita') 207 210 submit_button = _('Pay now') 208 https = False209 211 210 212 # Here we use Remita test portal data 211 merchantId = '2547916' 212 serviceTypeId = '4430731' 213 api_key = '1946' 213 merchantId = MERCHANTID 214 host = HOST 215 https = HTTPS 216 api_key = API_KEY 217 serviceTypeId = SERVICETYPEID 218 214 219 orderId = '3456346346' 215 host = 'www.remitademo.net'216 220 init_url = '/remita/ecomm/split/init.reg' 217 221 amount='1000' -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/studentsbrowser.py
r14779 r14790 33 33 from kofacustom.nigeria.interfaces import MessageFactory as _ 34 34 35 from kofacustom.nigeria.remita.tests import ( 36 MERCHANTID, HOST, HTTPS, API_KEY, SERVICETYPEID) 37 35 38 grok.templatedir('browser_templates') 36 39 … … 107 110 108 111 # Here we use Remita test portal data 109 merchantId = '2547916'110 host = 'www.remitademo.net'111 https = False112 api_key = '1946'112 merchantId = MERCHANTID 113 host = HOST 114 https = HTTPS 115 api_key = API_KEY 113 116 114 117 def update(self): … … 160 163 161 164 # Here we use Remita test portal data 162 merchantId = '2547916'163 host = 'www.remitademo.net'164 https = False165 api_key = '1946'165 merchantId = MERCHANTID 166 host = HOST 167 https = HTTPS 168 api_key = API_KEY 166 169 167 170 def update(self): … … 214 217 label = _('Pay via Remita') 215 218 submit_button = _('Pay now') 216 https = False217 219 218 220 # Here we use Remita test portal data 219 merchantId = '2547916' 220 serviceTypeId = '4430731' 221 api_key = '1946' 221 merchantId = MERCHANTID 222 host = HOST 223 https = HTTPS 224 api_key = API_KEY 225 serviceTypeId = SERVICETYPEID 226 222 227 orderId = '3456346346' 223 host = 'www.remitademo.net'224 228 init_url = '/remita/ecomm/split/init.reg' 225 229 amount='1000' -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/tests.py
r14788 r14790 38 38 EXTERNAL_TESTS = True 39 39 40 MERCHANTID = '2547916' 41 HOST = 'www.remitademo.net' 42 HTTPS = False 43 API_KEY = '1946' 44 SERVICETYPEID = '4430731' 45 40 46 def external_test(func): 41 47 if not EXTERNAL_TESTS: … … 50 56 class HelperTests(unittest.TestCase): 51 57 52 merchantId = '2547916' 53 serviceTypeId = '4430731' 54 api_key = '1946' 58 merchantId = MERCHANTID 59 host = HOST 60 https = HTTPS 61 api_key = API_KEY 62 serviceTypeId = SERVICETYPEID 63 55 64 responseurl = 'http://xxxx' 56 host = 'www.remitademo.net' 65 57 66 url = '/remita/ecomm/split/init.reg' # /remita/ecomm/v2/init.reg 58 67 lineitems = ( … … 72 81 api_key=self.api_key, orderId=self.orderId, 73 82 amount=self.amount, responseurl=self.responseurl, 74 host=self.host, url=self.url, https= False,83 host=self.host, url=self.url, https=self.https, 75 84 fullname='Anton Meier', email='am@xxx.de', 76 85 lineitems=self.lineitems) … … 84 93 api_key=self.api_key, orderId=self.orderId, 85 94 amount=self.amount, responseurl=self.responseurl, 86 host=self.host, url=self.url, https= False,95 host=self.host, url=self.url, https=self.https, 87 96 fullname='Anton Meier', email='am@xxx.de', 88 97 lineitems=self.lineitems) … … 99 108 RRR=self.rrr, 100 109 host=self.host, 101 https= False,110 https=self.https, 102 111 ) 103 112 assert resp['orderId'] == self.orderId … … 116 125 layer = FunctionalLayer 117 126 118 merchantId = '2547916' 119 serviceTypeId = '4430731' 120 api_key = '1946' 127 merchantId = MERCHANTID 128 host = HOST 129 https = HTTPS 130 api_key = API_KEY 131 121 132 responseurl = 'http://xxxx' 122 host = 'www.remitademo.net'123 133 124 134 # successful transaction … … 162 172 RRR=self.rrr_p, 163 173 host=self.host, 164 https= False,174 https=self.https, 165 175 verify=False) 166 176 assert qr == ( … … 179 189 RRR=self.rrr, 180 190 host=self.host, 181 https= False,191 https=self.https, 182 192 verify=False) 183 193 assert qr[0] == True … … 232 242 layer = FunctionalLayer 233 243 234 merchantId = '2547916' 235 serviceTypeId = '4430731' 236 api_key = '1946' 244 merchantId = MERCHANTID 245 host = HOST 246 https = HTTPS 247 api_key = API_KEY 248 237 249 responseurl = 'http://xxxx' 238 host = 'www.remitademo.net'239 250 240 251 # successful transaction … … 288 299 layer = FunctionalLayer 289 300 290 merchantId = '2547916' 291 serviceTypeId = '4430731' 292 api_key = '1946' 301 merchantId = MERCHANTID 302 host = HOST 303 https = HTTPS 304 api_key = API_KEY 305 293 306 responseurl = 'http://xxxx' 294 host = 'www.remitademo.net'295 307 296 308 # successful transaction -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/webservices.py
r14788 r14790 33 33 grok.require('waeup.Public') 34 34 35 ACCEPTED_IP = None35 ACCEPTED_IP = ('127.0.0.1',) 36 36 37 37 # Here we use Remita test portal data
Note: See TracChangeset for help on using the changeset viewer.