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