Changeset 1367 for WAeUP_SRP/trunk/skins/waeup_epayment
- Timestamp:
- 28 Jan 2007, 08:51:36 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_epayment
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/epayment_cb.py
r1365 r1367 38 38 pd[pdk] = request.get(rc) 39 39 context.getContent().edit(mapping=pd) 40 resp = pd['resp_desc'] 41 if resp.startswith('Appro') and resp.endswith('essful'): 40 #resp = pd['resp_desc'] 41 #if resp.startswith('Appro') and resp.endswith('essful'): 42 resp = pd['resp_code'] 43 if resp == '00': 42 44 wftool.doActionFor(student,'pay_school_fee') 43 45 logger.info('"%s", "received valid callback"' % student_id) 46 44 47 elif len(resp) < 3: 45 48 logger.info('"%s", "received no callback"' % student_id) -
WAeUP_SRP/trunk/skins/waeup_epayment/simulate_callback.py
r1362 r1367 12 12 13 13 args = {} 14 args['x_RespDesc'] = 'Simulated '15 args['x_RespPayRef'] = 'GTB|WEB|ISW| 7-01-2007|000579'16 args['x_RespCode'] = ' 00'17 args['x_CardNum'] = '0 114'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' 18 18 args['x_ApprAmt'] = REQUEST.get('x_amt') 19 19
Note: See TracChangeset for help on using the changeset viewer.