- Timestamp:
- 3 Apr 2012, 15:31:13 (13 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_uniben
- Files:
-
- 1 added
- 7 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_uniben/admission_form.pt
r8022 r8028 13 13 app_email info/app_doc/app_email|nothing; 14 14 app_passport info/has_passport; 15 data_complete python: app_passport and app_email;15 data_complete python:True; 16 16 "> 17 17 … … 84 84 /> 85 85 <input tal:condition="python:review_state in ('admitted', 'objection_raised',) and data_complete" type="submit" name="start_clearance:method" 86 class="context" value="Continue" 86 class="context" value="Enter Clearance PIN" 87 /> 88 <input tal:condition="python:review_state in ('admitted', 'objection_raised',) and data_complete" type="submit" name="payments:method" 89 class="context" value="Pay Acceptance Fee" 87 90 /> 88 91 </form> -
WAeUP_SRP/trunk/skins/waeup_uniben/enter_tranzact_pin.pt
r7901 r8028 3 3 <metal:body use-macro="here/main_template/macros/master"> 4 4 <metal:main fill-slot="main"> 5 <h3> Re-query eTranzact payment!</h3>5 <h3>Query eTranzact payment!</h3> 6 6 <br /> 7 7 <form id="form1" name="form1" method="post" tal:attributes= "action query_url"> -
WAeUP_SRP/trunk/skins/waeup_uniben/etranzact_cb.py
r7998 r8028 43 43 ontest = True 44 44 45 if not ontest and not ' webpay.interswitchng.com' in referer and not 'waeup.org' in referer:45 if not ontest and not 'xyz' 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()) … … 91 91 pay_doc = context.getContent() 92 92 93 if pay_doc['order_id'] != success_dict['PAYMENT_CODE'] :93 if pay_doc['order_id'] != success_dict['PAYMENT_CODE'] and not ontest : 94 94 logger.info('%s requeried payment %s for %s but wrong payment code %s returned' % (member,context.getId(),student_id,success_dict['PAYMENT_CODE'])) 95 95 return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url()) 96 96 97 if pay_doc['amount'] != success_dict['TRANS_AMOUNT'] :97 if pay_doc['amount'] != success_dict['TRANS_AMOUNT'] and not ontest : 98 98 logger.info('%s requeried payment %s for %s but wrong amount %s returned' % (member,context.getId(),student_id,success_dict['TRANS_AMOUNT'])) 99 99 return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url()) … … 111 111 session = s_brain.session 112 112 113 next_info = context.getNextInfo(s_brain)114 next_session_id = next_info['next_session_id']115 next_session_str = next_info['next_session_str']116 next_level_id = next_info['next_level_id']117 next_transition = next_info['next_transition']118 next_verdict = next_info['next_verdict']119 next_previous_verdict = next_info['next_previous_verdict']120 113 if pay_doc.category == 'schoolfee': 114 next_info = context.getNextInfo(s_brain) 115 next_session_id = next_info['next_session_id'] 116 next_session_str = next_info['next_session_str'] 117 next_level_id = next_info['next_level_id'] 118 next_transition = next_info['next_transition'] 119 next_verdict = next_info['next_verdict'] 120 next_previous_verdict = next_info['next_previous_verdict'] 121 121 if context.getStudentReviewState() == "school_fee_paid": 122 122 logger.info('%s paid school_fee in state school_fee_paid' % (student_id)) -
WAeUP_SRP/trunk/skins/waeup_uniben/etranzact_form.pt
r7901 r8028 5 5 <br /> 6 6 <span tal:condition="not: info/payment_possible"> 7 No payment information for your courseavailable.7 No payment information available. 8 8 </span> 9 9 <span tal:condition="info/payment_possible"> 10 <form method="post" action="pay_etranzact">10 <form method="post" tal:attributes="action info/action"> 11 11 <table> 12 12 <tr> -
WAeUP_SRP/trunk/skins/waeup_uniben/getPaymentsFolderInfo.py
r8011 r8028 79 79 pass 80 80 81 if review_state == 'admitted': 82 info['acceptance'] = True 83 else: 84 info['acceptance'] = False 85 81 86 # end customization 82 87 … … 129 134 130 135 if row['is_requeryable_etranzact']: 131 row['callback_url_tranzact'] = "%(url)s/ tranzact_cb" % row136 row['callback_url_tranzact'] = "%(url)s/etranzact_cb" % row 132 137 # if payment.category == 'schoolfee': 133 138 # row['callback_url'] = "%(url)s/interswitch_cb" % row -
WAeUP_SRP/trunk/skins/waeup_uniben/getSchoolFee.py
r7901 r8028 586 586 d = all_fees[brain.course] 587 587 d['description'] = "%s (%s)" % (description,brain.course) 588 else: 589 return None 588 590 589 591 d['next_session_id'] = next_info['next_session_id'] -
WAeUP_SRP/trunk/skins/waeup_uniben/pay_etranzact.py
r8005 r8028 36 36 #amount,description = context.getSchoolFee(student_record.faculty,student_record.session,student_record.course) 37 37 info = {} 38 info['action'] = 'pay_etranzact' 38 39 info['student'] = student_record 39 40 info['payment_possible'] = False -
WAeUP_SRP/trunk/skins/waeup_uniben/payments_view.pt
r7901 r8028 74 74 <br /> 75 75 <div> 76 77 <form tal:condition="info/acceptance|nothing" 78 tal:attributes="action string: ${context/absolute_url}/pay_etranzact_accept" method="post" class="group"> 79 <input type="submit" name="epayment" 80 class="context" 81 value="Initiate Acceptance Fee Payment (eTranzact)" 82 /> 83 <br /><br /> 84 <font tal:condition="python:False" color='red'>Surcharge for Late Registration is 10000 Naira. </font> 85 </form> 86 76 87 <form tal:condition="python: info.get('payment_method') in ('online_payment','both_payments')" 77 88 tal:attributes="action string: ${context/absolute_url}/pay_interswitch" method="post" class="group">
Note: See TracChangeset for help on using the changeset viewer.