Last change
on this file since 1499 was
1427,
checked in by Henrik Bettermann, 18 years ago
|
approve payment modified
payments_view changed to show links
|
-
Property svn:keywords set to
Id
|
File size:
674 bytes
|
Rev | Line | |
---|
[1235] | 1 | ##parameters=REQUEST,matric_no=None |
---|
| 2 | # $Id: simulate_callback.py 1427 2007-02-16 12:39:56Z henrik $ |
---|
| 3 | """ |
---|
| 4 | process the Application Form |
---|
| 5 | return html renderer + psm |
---|
| 6 | """ |
---|
| 7 | import DateTime,logging |
---|
| 8 | current = DateTime.DateTime() |
---|
| 9 | pr = context.portal_registration |
---|
[1427] | 10 | logger = logging.getLogger('EPayment.Simulate') |
---|
[1235] | 11 | validate = REQUEST.has_key("cpsdocument_edit_button") |
---|
| 12 | |
---|
| 13 | args = {} |
---|
[1367] | 14 | args['x_RespDesc'] = 'Simulated Callback' |
---|
| 15 | args['x_RespPayRef'] = 'GTB|WEB|ISW|1-01-2000|000234' |
---|
| 16 | args['x_RespCode'] = 'XX' |
---|
| 17 | args['x_CardNum'] = '0000' |
---|
[1243] | 18 | args['x_ApprAmt'] = REQUEST.get('x_amt') |
---|
[1235] | 19 | |
---|
| 20 | from urllib import urlencode |
---|
[1425] | 21 | #url = "%s/epayment_cb/?%s" % (context.absolute_url(),urlencode(args)) |
---|
| 22 | url = "%s" % (context.absolute_url()) |
---|
[1235] | 23 | return REQUEST.RESPONSE.redirect(url) |
---|
Note: See
TracBrowser for help on using the repository browser.