##parameters=REQUEST,matric_no=None # $Id: simulate_callback.py 1571 2007-03-17 15:25:56Z henrik $ """ process the Application Form return html renderer + psm """ import DateTime current = DateTime.DateTime() pr = context.portal_registration validate = REQUEST.has_key("cpsdocument_edit_button") import logging logger = logging.getLogger('Skins.simulate_callback') args = {} args['x_RespDesc'] = 'Simulated Callback' args['x_RespPayRef'] = 'GTB|WEB|ISW|1-01-2000|000234' args['x_RespCode'] = 'XX' args['x_CardNum'] = '0000' args['x_ApprAmt'] = REQUEST.get('x_amt') student_id = context.getStudentId() logger.info('%s received simulated callback' % student_id) from urllib import urlencode #url = "%s/epayment_cb/?%s" % (context.absolute_url(),urlencode(args)) url = "%s" % (context.absolute_url()) return REQUEST.RESPONSE.redirect(url)