Changeset 2895 for WAeUP_SRP/base
- Timestamp:
- 9 Dec 2007, 13:41:15 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_epayment/interswitch_acco_cb.py
r2891 r2895 53 53 for rc,pdk in resp_codes: 54 54 pd[pdk] = request.get(rc,'') 55 56 55 56 57 57 ## for testing purposes 58 58 pd['resp_desc'] = 'Simulated Callback' … … 60 60 pd['resp_code'] = '00' 61 61 pd['resp_card_num'] = '0000' 62 pd['resp_approved_amount'] = '10000' 62 pd['resp_approved_amount'] = '10000' 63 63 64 64 if pd['resp_code'] == '00' and len(pd['resp_approved_amount']) > 4: … … 67 67 else: 68 68 pd['resp_approved_amount'] = '0' 69 pd['status'] = 'failed' 69 pd['status'] = 'failed' 70 70 71 71 review_state = wftool.getInfoFor(context,'review_state',None) … … 82 82 #next_session, next_session_str = context.getNextSessionId(session) 83 83 84 if pay_doc. subject== 'hostel_maintenance':84 if pay_doc.category == 'hostel_maintenance': 85 85 if resp == '00': 86 86 d = {} … … 100 100 wftool.doActionFor(context,'close') 101 101 except: 102 logger.info('%s no workflow action close' % student_id) 102 logger.info('%s no workflow action close' % student_id) 103 103 try: 104 104 wftool.doActionFor(acco_info['acco'],'pay_maintenance_fee',dest_container=acco_info['acco']) … … 107 107 logger.info('%s no workflow action pay_maintainance_fee' % student_id) 108 108 return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url()) 109 109 110 110 111 111 else:
Note: See TracChangeset for help on using the changeset viewer.