Changeset 5265 for WAeUP_SRP/trunk/skins
- Timestamp:
- 14 Jul 2010, 14:56:06 (14 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_aaue
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_aaue/interswitch_request_cb.py
r5190 r5265 91 91 pd['status'] = 'failed' 92 92 pd['resp_desc'] = pd['msg'] 93 pd['resp_code'] = 'RP' 93 94 pd['date'] = now 94 95 95 96 review_state = wftool.getInfoFor(context,'review_state',None) 96 if not pd['resp_approved_amount']:97 logger.info('%s requeried payment %s for %s and got empty response' % (member,context.getId(),student_id))98 return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())99 97 if access_info['is_student'] and review_state == 'closed': 100 98 wftool.doActionFor(context,'open') … … 114 112 next_previous_verdict = next_info['next_previous_verdict'] 115 113 116 if resp :114 if resp != '0': 117 115 if pay_doc.category == 'schoolfee': 118 116 if context.getStudentReviewState() == "school_fee_paid": … … 138 136 139 137 logger.info('%s received valid callback' % student_id) 138 logger.info('%s paid first instalment' % student_id) 140 139 141 140 else: -
WAeUP_SRP/trunk/skins/waeup_aaue/interswitch_request_cb2.py
r5193 r5265 91 91 pd['status'] = 'failed' 92 92 pd['resp_desc'] = pd['msg'] 93 pd['resp_code'] = 'RP' 93 94 pd['date'] = now 94 95 95 96 review_state = wftool.getInfoFor(context,'review_state',None) 96 if not pd['resp_approved_amount']:97 logger.info('%s requeried payment %s for %s and got empty response' % (member,context.getId(),student_id))98 return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())99 97 if access_info['is_student'] and review_state == 'closed': 100 98 wftool.doActionFor(context,'open') … … 104 102 pay_doc.edit(mapping = pd) 105 103 106 if resp :104 if resp != '0': 107 105 logger.info('%s received valid callback' % student_id) 108 106 logger.info('%s paid second instalment' % student_id)
Note: See TracChangeset for help on using the changeset viewer.