Changeset 7998 for main/waeup.custom/trunk/src/waeup/custom/interswitch
- Timestamp:
- 28 Mar 2012, 20:50:45 (13 years ago)
- Location:
- main/waeup.custom/trunk/src/waeup/custom/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.custom/trunk/src/waeup/custom/interswitch/browser.py
r7970 r7998 102 102 if self.context.p_state == 'paid': 103 103 return '' 104 site_redirect_url = self.view.url(self.view.context, ' callback')104 site_redirect_url = self.view.url(self.view.context, 'isw_callback') 105 105 args = { 106 106 'transRef':self.context.p_id, … … 143 143 self.amount_100 = 100 * self.amount 144 144 self.local_date_time = str(self.context.creation_date) 145 self.site_redirect_url = self.url(self.context, ' callback')145 self.site_redirect_url = self.url(self.context, 'isw_callback') 146 146 certificate = getattr(self.student['studycourse'],'certificate',None) 147 147 xmldict = {} … … 176 176 """ 177 177 grok.context(IStudentOnlinePayment) 178 grok.name(' callback')178 grok.name('isw_callback') 179 179 grok.require('waeup.payStudent') 180 180 -
main/waeup.custom/trunk/src/waeup/custom/interswitch/tests.py
r7995 r7998 61 61 def callback_url(self, payment_url, resp, apprAmt): 62 62 return payment_url + ( 63 '/ callback?echo=' +63 '/isw_callback?echo=' + 64 64 '&resp=%s' + 65 65 '&desc=Something went wrong' + … … 89 89 self.assertMatches('...Failed...', 90 90 self.browser.contents) 91 self.browser.open(self.payment_url + '/ callback')91 self.browser.open(self.payment_url + '/isw_callback') 92 92 self.assertMatches('...Unsuccessful callback: Incomplete query string...', 93 93 self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.