Ignore:
Timestamp:
28 Mar 2012, 20:50:45 (13 years ago)
Author:
Henrik Bettermann
Message:

Neutralize callback simulation components in base package.

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  
    102102        if self.context.p_state == 'paid':
    103103            return ''
    104         site_redirect_url = self.view.url(self.view.context, 'callback')
     104        site_redirect_url = self.view.url(self.view.context, 'isw_callback')
    105105        args = {
    106106            'transRef':self.context.p_id,
     
    143143        self.amount_100 = 100 * self.amount
    144144        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')
    146146        certificate = getattr(self.student['studycourse'],'certificate',None)
    147147        xmldict = {}
     
    176176    """
    177177    grok.context(IStudentOnlinePayment)
    178     grok.name('callback')
     178    grok.name('isw_callback')
    179179    grok.require('waeup.payStudent')
    180180
  • main/waeup.custom/trunk/src/waeup/custom/interswitch/tests.py

    r7995 r7998  
    6161    def callback_url(self, payment_url, resp, apprAmt):
    6262        return payment_url + (
    63             '/callback?echo=' +
     63            '/isw_callback?echo=' +
    6464            '&resp=%s' +
    6565            '&desc=Something went wrong' +
     
    8989        self.assertMatches('...Failed...',
    9090                           self.browser.contents)
    91         self.browser.open(self.payment_url + '/callback')
     91        self.browser.open(self.payment_url + '/isw_callback')
    9292        self.assertMatches('...Unsuccessful callback: Incomplete query string...',
    9393                          self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.