1 | <metal:body use-macro="here/slip_template/macros/master"> |
---|
2 | <metal:main fill-slot="main" |
---|
3 | tal:define="info context/getPaymentInfo;"> |
---|
4 | <span tal:condition="python: not info"> |
---|
5 | <span tal:content="here/illegal_view" /> |
---|
6 | </span> |
---|
7 | |
---|
8 | <span tal:condition="python: info"> |
---|
9 | <metal:block tal:condition="info/is_online_pmt"> |
---|
10 | <h3>Interswitch Payment Receipt</h3> |
---|
11 | <br /> |
---|
12 | <table tal:define="student info/student"> |
---|
13 | <tr> |
---|
14 | <td width="220px">Name:</td> |
---|
15 | <td><span tal:content="student/name" /></td> |
---|
16 | </tr> |
---|
17 | <tr> |
---|
18 | <td>Student Id:</td> |
---|
19 | <td tal:content="student/id" /> |
---|
20 | </tr> |
---|
21 | <tr> |
---|
22 | <td>Registration Number:</td> |
---|
23 | <td tal:content="student/jamb_reg_no" /> |
---|
24 | </tr> |
---|
25 | <tr> |
---|
26 | <td>Matriculation Number:</td> |
---|
27 | <td tal:content="student/matric_no" /> |
---|
28 | </tr> |
---|
29 | <tr> |
---|
30 | <td>Current Study Level:</td> |
---|
31 | <td tal:content="python:context.portal_vocabularies.student_levels.get(student['level'])" /> |
---|
32 | </tr> |
---|
33 | <tr> |
---|
34 | <td>Certificate Id:</td> |
---|
35 | <td tal:content="student/course" /> |
---|
36 | </tr> |
---|
37 | <tr> |
---|
38 | <td>Faculty:</td> |
---|
39 | <td tal:content="student/faculty" /> |
---|
40 | </tr> |
---|
41 | <tr> |
---|
42 | <td>Department:</td> |
---|
43 | <td tal:content="student/department" /> |
---|
44 | </tr> |
---|
45 | </table> |
---|
46 | <span tal:omit-tag="" |
---|
47 | tal:content="structure python: info['payment_doc'].render(layout_mode='view')" |
---|
48 | /> |
---|
49 | </metal:block> |
---|
50 | |
---|
51 | |
---|
52 | <metal:block tal:condition="info/is_etranzact_pmt"> |
---|
53 | <h3>eTranzact Payment Initiation Slip</h3> |
---|
54 | <br /> |
---|
55 | <table tal:define="student info/student; |
---|
56 | pm nocall: info/payment_doc"> |
---|
57 | <tr> |
---|
58 | <td width="220px">Name:</td> |
---|
59 | <td><span tal:content="student/name" /></td> |
---|
60 | </tr> |
---|
61 | <tr> |
---|
62 | <td>Student Id:</td> |
---|
63 | <td tal:content="student/id" /> |
---|
64 | </tr> |
---|
65 | <tr> |
---|
66 | <td>Registration Number:</td> |
---|
67 | <td tal:content="student/jamb_reg_no" /> |
---|
68 | </tr> |
---|
69 | <tr> |
---|
70 | <td>Matriculation Number:</td> |
---|
71 | <td tal:content="student/matric_no" /> |
---|
72 | </tr> |
---|
73 | <tr> |
---|
74 | <td>Current Study Level:</td> |
---|
75 | <td tal:content="python:context.portal_vocabularies.student_levels.get(student['level'])" /> |
---|
76 | </tr> |
---|
77 | <tr> |
---|
78 | <td>Certificate Id:</td> |
---|
79 | <td tal:content="student/course" /> |
---|
80 | </tr> |
---|
81 | <tr> |
---|
82 | <td>Faculty:</td> |
---|
83 | <td tal:content="student/faculty" /> |
---|
84 | </tr> |
---|
85 | <tr> |
---|
86 | <td>Department:</td> |
---|
87 | <td tal:content="student/department" /> |
---|
88 | </tr> |
---|
89 | |
---|
90 | <tr> |
---|
91 | <td width="220px">Payment Status:</td> |
---|
92 | <td><span tal:content="python:context.portal_vocabularies.payment_status.get(pm.status)" /></td> |
---|
93 | </tr> |
---|
94 | <tr> |
---|
95 | <td width="220px">Payment Type:</td> |
---|
96 | |
---|
97 | <td><span tal:content="python:context.portal_vocabularies.payment_types.get(pm.type)" /></td> |
---|
98 | </tr> |
---|
99 | <tr> |
---|
100 | <td width="220px">Payment Category:</td> |
---|
101 | <td><span tal:content="python:context.portal_vocabularies.payment_categories.get(pm.category)" /></td> |
---|
102 | </tr> |
---|
103 | <tr> |
---|
104 | <td width="220px">Payment Item:</td> |
---|
105 | <td><span tal:content="pm/item" /></td> |
---|
106 | </tr> |
---|
107 | <tr> |
---|
108 | <td width="220px">Session:</td> |
---|
109 | <td><span tal:content="python:context.portal_vocabularies.sessions.get(pm.session_id)" /></td> |
---|
110 | </tr> |
---|
111 | |
---|
112 | <tr> |
---|
113 | <td width="220px">Slip Creation Date:</td> |
---|
114 | <td><span tal:content='python:pm.date.strftime("%d/%m/%y %H:%M:%S")' /></td> |
---|
115 | </tr> |
---|
116 | <tr> |
---|
117 | <td width="220px">Amount (Naira):</td> |
---|
118 | <td><strong><span tal:content="pm/amount" /></strong></td> |
---|
119 | </tr> |
---|
120 | <tr> |
---|
121 | <td width="220px">Transaction Code:</td> |
---|
122 | <td><strong><span tal:content="pm/order_id" /></strong></td> |
---|
123 | </tr> |
---|
124 | <tr> |
---|
125 | <td width="220px">Response Code:</td> |
---|
126 | <td><span tal:content="pm/resp_code" /></td> |
---|
127 | </tr> |
---|
128 | <tr> |
---|
129 | <td width="220px">Response Description:</td> |
---|
130 | <td><span tal:content="pm/resp_desc" /></td> |
---|
131 | </tr> |
---|
132 | <tr> |
---|
133 | <td width="220px">Response Reference:</td> |
---|
134 | <td><span tal:content="pm/resp_pay_reference" /></td> |
---|
135 | </tr> |
---|
136 | </table> |
---|
137 | |
---|
138 | </metal:block> |
---|
139 | |
---|
140 | |
---|
141 | <metal:block tal:condition="info/is_scratchcard_pmt"> |
---|
142 | <h3>Scratch Card Payment Receipt</h3> |
---|
143 | <br /> |
---|
144 | <table tal:define="student info/student; |
---|
145 | pm nocall: info/payment_doc"> |
---|
146 | |
---|
147 | <tr> |
---|
148 | <td width="220px">Name:</td> |
---|
149 | <td><span tal:content="student/name" /></td> |
---|
150 | </tr> |
---|
151 | <tr> |
---|
152 | <td>Student Id:</td> |
---|
153 | <td tal:content="student/id" /> |
---|
154 | </tr> |
---|
155 | <tr> |
---|
156 | <td>Registration Number:</td> |
---|
157 | <td tal:content="student/jamb_reg_no" /> |
---|
158 | </tr> |
---|
159 | <tr> |
---|
160 | <td>Matriculation Number:</td> |
---|
161 | <td tal:content="student/matric_no" /> |
---|
162 | </tr> |
---|
163 | <tr> |
---|
164 | <td>Certificate Id:</td> |
---|
165 | <td tal:content="student/course" /> |
---|
166 | </tr> |
---|
167 | <tr> |
---|
168 | <td>Faculty:</td> |
---|
169 | <td tal:content="student/faculty" /> |
---|
170 | </tr> |
---|
171 | <tr> |
---|
172 | <td>Department:</td> |
---|
173 | <td tal:content="student/department" /> |
---|
174 | </tr> |
---|
175 | |
---|
176 | <tr> |
---|
177 | <td width="220px">Payment Status:</td> |
---|
178 | <td><span tal:content="python:context.portal_vocabularies.payment_status.get(pm.status)" /></td> |
---|
179 | </tr> |
---|
180 | <tr> |
---|
181 | <td width="220px">Access Code:</td> |
---|
182 | <td><span tal:content="pm/order_id" /></td> |
---|
183 | </tr> |
---|
184 | <tr> |
---|
185 | <td width="220px">Payment Type:</td> |
---|
186 | |
---|
187 | <td><span tal:content="python:context.portal_vocabularies.payment_types.get(pm.type)" /></td> |
---|
188 | </tr> |
---|
189 | <tr> |
---|
190 | <td width="220px">Payment Category:</td> |
---|
191 | <td><span tal:content="python:context.portal_vocabularies.payment_categories.get(pm.category)" /></td> |
---|
192 | </tr> |
---|
193 | <tr> |
---|
194 | <td width="220px">Payment Item:</td> |
---|
195 | <td><span tal:content="pm/item" /></td> |
---|
196 | </tr> |
---|
197 | <tr> |
---|
198 | <td width="220px">Session:</td> |
---|
199 | <td><span tal:content="python:context.portal_vocabularies.sessions.get(pm.session_id)" /></td> |
---|
200 | </tr> |
---|
201 | |
---|
202 | <tr> |
---|
203 | <td width="220px">Transaction Date:</td> |
---|
204 | <td><span tal:content='python:pm.date.strftime("%d/%m/%y %H:%M:%S")' /></td> |
---|
205 | </tr> |
---|
206 | <tr> |
---|
207 | <td width="220px">Amount (Naira):</td> |
---|
208 | <td><span tal:content="pm/amount" /></td> |
---|
209 | </tr> |
---|
210 | <tr> |
---|
211 | <td width="220px">Response Code:</td> |
---|
212 | <td><span tal:content="pm/resp_code" /></td> |
---|
213 | </tr> |
---|
214 | <tr> |
---|
215 | <td width="220px">Response Description:</td> |
---|
216 | <td><span tal:content="pm/resp_desc" /></td> |
---|
217 | </tr> |
---|
218 | </table> |
---|
219 | </metal:block> |
---|
220 | |
---|
221 | <metal:block tal:condition="info/is_interrupted"> |
---|
222 | <h3>Payment Process Interrupted!</h3> |
---|
223 | <br /> |
---|
224 | </metal:block> |
---|
225 | |
---|
226 | <metal:block tal:condition="info/unknown_code"> |
---|
227 | <h3>Response from Bank: "<span tal:content="info/resp_desc" />"</h3> |
---|
228 | <br /> |
---|
229 | </metal:block> |
---|
230 | |
---|
231 | </span> |
---|
232 | </metal:main> |
---|
233 | </metal:body> |
---|