Changeset 8131 for WAeUP_SRP/trunk/skins
- Timestamp:
- 12 Apr 2012, 16:01:45 (13 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_uniben
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_uniben/enter_tranzact_pin.pt
r8028 r8131 6 6 <br /> 7 7 <form id="form1" name="form1" method="post" tal:attributes= "action query_url"> 8 <input type="hidden" name="TERMINAL_ID" type="text" value="0 000000001"/>8 <input type="hidden" name="TERMINAL_ID" type="text" value="0500000003"/> 9 9 <input type="hidden" name="RESPONSE_URL" type="text" 10 10 tal:attributes="value redirect_url"/> -
WAeUP_SRP/trunk/skins/waeup_uniben/etranzact_cb.py
r8028 r8131 41 41 logger.info('%s, callback referer = %s, IP = %s' % (student_id,referer,real_ip)) 42 42 43 ontest = True43 ontest = False 44 44 45 if not ontest and not ' xyz' in referer and not 'waeup.org' in referer:45 if not ontest and not 'etranzact' in referer and not 'waeup.org' in referer: 46 46 logger.info('%s, wrong callback referer %s, callback rejected, IP = %s' % (student_id,referer,real_ip)) 47 47 return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url()) … … 85 85 #&LEAD_BANK_NAME=eTranzact%20Test%20Bank' 86 86 87 88 87 success = request.get('SUCCESS').split('&') 89 88 success_dict = dict([tuple(i.split('=')) for i in success]) … … 91 90 pay_doc = context.getContent() 92 91 93 if pay_doc['order_id'] != success_dict[' PAYMENT_CODE'] and not ontest :92 if pay_doc['order_id'] != success_dict['COL1'] and not ontest : 94 93 logger.info('%s requeried payment %s for %s but wrong payment code %s returned' % (member,context.getId(),student_id,success_dict['PAYMENT_CODE'])) 95 94 return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url()) 96 95 97 if pay_doc['amount'] != success_dict['TRANS_AMOUNT']and not ontest :96 if float(pay_doc['amount']) != float(success_dict['TRANS_AMOUNT']) and not ontest : 98 97 logger.info('%s requeried payment %s for %s but wrong amount %s returned' % (member,context.getId(),student_id,success_dict['TRANS_AMOUNT'])) 99 98 return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url()) -
WAeUP_SRP/trunk/skins/waeup_uniben/getPaymentsFolderInfo.py
r8110 r8131 42 42 info['student_name'] = student_record.name 43 43 info['query_url'] = "https://webpay.interswitchng.com/paydirect/services/TransactionQueryURL.aspx" 44 info['query_url_tranzact'] = "http:// demo.etranzact.com:8080/WebConnect/queryPayoutletTransaction.jsp"44 info['query_url_tranzact'] = "http://www.etranzact.net/WebConnect/verifypin.jsp" 45 45 review_state = info['review_state'] = student_record.review_state 46 46 parttime = student_record.mode and student_record.mode.endswith('_pt')
Note: See TracChangeset for help on using the changeset viewer.