Changeset 13388
- Timestamp:
- 4 Nov 2015, 11:13:30 (9 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
r13383 r13388 391 391 grok.context(ICustomStudentOnlinePayment) 392 392 gateway_host = HOST 393 gateway_url = URL393 gateway_url = '/paydirect/api/v1/gettransaction.json' 394 394 https = HTTPS 395 mac = '9718FA00B0F5070B388A9896ADCED9B2FB02D30F71E12E68BDADC63F6852A3496FF97D8A0F9DA9F753B911A49BB09BB87B55FD02046BD325C74C46C0123CF023' 395 396 396 397 @property -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r13385 r13388 29 29 # If you enable this, please make sure the external services 30 30 # do exist really and are not bothered by being spammed by a test programme. 31 EXTERNAL_TESTS = True31 EXTERNAL_TESTS = False 32 32 33 33 def external_test(func): … … 321 321 self.browser.getLink(self.value).click() 322 322 self.payment_url = self.browser.url 323 # First we have open InterswitchPageStudent to set provider_amt323 # First we have to open InterswitchPageStudent to set provider_amt 324 324 # and gateway_amt 325 325 self.browser.open(self.payment_url + '/goto_interswitch') … … 344 344 payment.p_id = 'p4465649308559' 345 345 self.browser.open(self.payment_url + '/request_webservice') 346 self.assertTrue(' Callback amount does not match' in346 self.assertTrue('Unsuccessful callback: Amount Inconsistency' in 347 347 self.browser.contents) 348 348 # The payment is now in state failed ... … … 350 350 # Let's replace the amount autorized with the amount of the 351 351 # live system payment 352 payment.amount_auth = payment.r_amount_approved352 payment.amount_auth = 60250.0 353 353 self.browser.open(self.payment_url + '/request_webservice') 354 354 self.assertTrue('Successful payment' in
Note: See TracChangeset for help on using the changeset viewer.