source: WAeUP_SRP/trunk/skins/waeup_epayment/simulate_callback.py_not_used @ 17952

Last change on this file since 17952 was 2892, checked in by Henrik Bettermann, 17 years ago

updated

File size: 719 bytes
Line 
1##parameters=REQUEST
2# $Id: simulate_callback.py 2857 2007-12-04 16:28:13Z joachim $
3"""
4simulate a callback
5"""
6try:
7    from Products.zdb import set_trace
8except:
9    def set_trace():
10        pass
11
12import DateTime,logging
13current = DateTime.DateTime()
14pr = context.portal_registration
15logger = logging.getLogger('EPayment.Simulate')
16
17args = {}
18args['desc'] = 'Simulated Callback'
19args['PayRef'] = 'GTB|WEB|ISW|1-01-2000|000234'
20args['resp'] = '00'
21args['cardNum'] = '0000'
22args['ApprAmt'] = REQUEST.get('x_amt')
23from urllib import urlencode
24#set_trace()
25#url = "%s" % (context.absolute_url())
26raw_url = REQUEST.get("site_redirect_url")
27url = "%s&%s" % (raw_url,urlencode(args))
28return REQUEST.RESPONSE.redirect(url)
Note: See TracBrowser for help on using the repository browser.