source: WAeUP_SRP/branches/joachim-event-branch/skins/waeup_epayment/simulate_callback.py @ 9819

Last change on this file since 9819 was 1596, checked in by joachim, 18 years ago

merged changes from trunk to joachim-event-branch

  • Property svn:keywords set to Id
File size: 785 bytes
Line 
1##parameters=REQUEST,matric_no=None
2# $Id: simulate_callback.py 1596 2007-03-19 21:45:44Z joachim $
3"""
4process the Application Form
5return html renderer + psm
6"""
7import DateTime
8current = DateTime.DateTime()
9pr = context.portal_registration
10validate = REQUEST.has_key("cpsdocument_edit_button")
11
12import logging
13logger = logging.getLogger('Skins.simulate_callback')
14
15args = {}
16args['x_RespDesc'] = 'Simulated Callback'
17args['x_RespPayRef'] = 'GTB|WEB|ISW|1-01-2000|000234'
18args['x_RespCode'] = 'XX'
19args['x_CardNum'] = '0000'
20args['x_ApprAmt'] = REQUEST.get('x_amt')
21
22
23student_id = context.getStudentId()
24logger.info('%s received simulated callback' % student_id)
25
26from urllib import urlencode
27#url = "%s/epayment_cb/?%s" % (context.absolute_url(),urlencode(args))
28url = "%s" % (context.absolute_url())
29return REQUEST.RESPONSE.redirect(url)
Note: See TracBrowser for help on using the repository browser.