##parameters=REQUEST,matric_no=None # $Id: simulate_callback.py 1243 2007-01-08 17:39:17Z joachim $ """ process the Application Form return html renderer + psm """ import DateTime,logging current = DateTime.DateTime() pr = context.portal_registration logger = logging.getLogger('Returning') validate = REQUEST.has_key("cpsdocument_edit_button") args = {} args['x_RespDesc'] = 'Approved Successful' args['x_RespPayRef'] = 'GTB|WEB|ISW|7-01-2007|000579' args['x_RespCode'] = '00' args['x_CardNum'] = '0114' args['x_ApprAmt'] = REQUEST.get('x_amt') from urllib import urlencode url = "%s/epayment_cb/?%s" % (context.absolute_url(),urlencode(args)) return REQUEST.RESPONSE.redirect(url)