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 | |
---|
10 | <metal:block tal:condition="info/is_im_pmt"> |
---|
11 | <h3>Imported Payment Receipt</h3> |
---|
12 | <br /> |
---|
13 | <table tal:define="student info/student; |
---|
14 | pm nocall: info/payment_doc"> |
---|
15 | <tr> |
---|
16 | <td width="220px">Name:</td> |
---|
17 | <td><span tal:content="student/name" /></td> |
---|
18 | </tr> |
---|
19 | <tr> |
---|
20 | <td>Student Id:</td> |
---|
21 | <td tal:content="student/id" /> |
---|
22 | </tr> |
---|
23 | <tr> |
---|
24 | <td>Registration Number:</td> |
---|
25 | <td tal:content="student/jamb_reg_no" /> |
---|
26 | </tr> |
---|
27 | <tr> |
---|
28 | <td>Matriculation Number:</td> |
---|
29 | <td tal:content="student/matric_no" /> |
---|
30 | </tr> |
---|
31 | <tr> |
---|
32 | <td>Current Study Level:</td> |
---|
33 | <td tal:content="python:context.portal_vocabularies.student_levels.get(student['level'])" /> |
---|
34 | </tr> |
---|
35 | <tr> |
---|
36 | <td>Certificate Id:</td> |
---|
37 | <td tal:content="student/course" /> |
---|
38 | </tr> |
---|
39 | <tr> |
---|
40 | <td>Faculty:</td> |
---|
41 | <td tal:content="student/faculty" /> |
---|
42 | </tr> |
---|
43 | <tr> |
---|
44 | <td>Department:</td> |
---|
45 | <td tal:content="student/department" /> |
---|
46 | </tr> |
---|
47 | <tr> |
---|
48 | <td width="220px">Payment Status:</td> |
---|
49 | <td><span tal:content="python:context.portal_vocabularies.payment_status.get(pm.status)" /></td> |
---|
50 | </tr> |
---|
51 | <tr> |
---|
52 | <td width="220px">Payment Type:</td> |
---|
53 | |
---|
54 | <td><span tal:content="python:context.portal_vocabularies.payment_types.get(pm.type)" /></td> |
---|
55 | </tr> |
---|
56 | <tr> |
---|
57 | <td width="220px">Payment Category:</td> |
---|
58 | <td><span tal:content="python:context.portal_vocabularies.payment_categories.get(pm.category)" /></td> |
---|
59 | </tr> |
---|
60 | <tr> |
---|
61 | <td width="220px">Session:</td> |
---|
62 | <td><span tal:content="python:context.portal_vocabularies.sessions.get(pm.session_id)" /></td> |
---|
63 | </tr> |
---|
64 | |
---|
65 | <tr> |
---|
66 | <td width="220px">Transaction Date:</td> |
---|
67 | <td><span tal:content="info/p_date" /></td> |
---|
68 | </tr> |
---|
69 | <tr> |
---|
70 | <td width="220px">Amount (Naira):</td> |
---|
71 | <td><span tal:content="pm/amount" /></td> |
---|
72 | </tr> |
---|
73 | <tr> |
---|
74 | <td width="220px">Response Code:</td> |
---|
75 | <td><span tal:content="pm/resp_code" /></td> |
---|
76 | </tr> |
---|
77 | <tr> |
---|
78 | <td width="220px">Response Description:</td> |
---|
79 | <td><span tal:content="pm/resp_desc" /></td> |
---|
80 | </tr> |
---|
81 | </table> |
---|
82 | </metal:block> |
---|
83 | |
---|
84 | <metal:block tal:condition="info/is_interswitch_pmt"> |
---|
85 | <h3>Interswitch Payment Receipt</h3> |
---|
86 | <br /> |
---|
87 | <table tal:define="student info/student"> |
---|
88 | <tr> |
---|
89 | <td width="220px">Name:</td> |
---|
90 | <td><span tal:content="student/name" /></td> |
---|
91 | </tr> |
---|
92 | <tr> |
---|
93 | <td>Student Id:</td> |
---|
94 | <td tal:content="student/id" /> |
---|
95 | </tr> |
---|
96 | <tr> |
---|
97 | <td>Registration Number:</td> |
---|
98 | <td tal:content="student/jamb_reg_no" /> |
---|
99 | </tr> |
---|
100 | <tr> |
---|
101 | <td>Matriculation Number:</td> |
---|
102 | <td tal:content="student/matric_no" /> |
---|
103 | </tr> |
---|
104 | <tr> |
---|
105 | <td>Current Study Level:</td> |
---|
106 | <td tal:content="python:context.portal_vocabularies.student_levels.get(student['level'])" /> |
---|
107 | </tr> |
---|
108 | <tr> |
---|
109 | <td>Certificate Id:</td> |
---|
110 | <td tal:content="student/course" /> |
---|
111 | </tr> |
---|
112 | <tr> |
---|
113 | <td>Faculty:</td> |
---|
114 | <td tal:content="student/faculty" /> |
---|
115 | </tr> |
---|
116 | <tr> |
---|
117 | <td>Department:</td> |
---|
118 | <td tal:content="student/department" /> |
---|
119 | </tr> |
---|
120 | </table> |
---|
121 | <span tal:omit-tag="" |
---|
122 | tal:content="structure python: info['payment_doc'].render(layout_mode='view')" |
---|
123 | /> |
---|
124 | </metal:block> |
---|
125 | |
---|
126 | |
---|
127 | <metal:block tal:condition="info/is_etranzact_pmt"> |
---|
128 | <h3>eTranzact Payment Initiation Slip</h3> |
---|
129 | <br /> |
---|
130 | <table tal:define="student info/student; |
---|
131 | pm nocall: info/payment_doc"> |
---|
132 | <tr> |
---|
133 | <td width="220px">Name:</td> |
---|
134 | <td><span tal:content="student/name" /></td> |
---|
135 | </tr> |
---|
136 | <tr> |
---|
137 | <td>Student Id:</td> |
---|
138 | <td tal:content="student/id" /> |
---|
139 | </tr> |
---|
140 | <tr> |
---|
141 | <td>Registration Number:</td> |
---|
142 | <td tal:content="student/jamb_reg_no" /> |
---|
143 | </tr> |
---|
144 | <tr> |
---|
145 | <td>Matriculation Number:</td> |
---|
146 | <td tal:content="student/matric_no" /> |
---|
147 | </tr> |
---|
148 | <tr> |
---|
149 | <td>Current Study Level:</td> |
---|
150 | <td tal:content="python:context.portal_vocabularies.student_levels.get(student['level'])" /> |
---|
151 | </tr> |
---|
152 | <tr> |
---|
153 | <td>Certificate Id:</td> |
---|
154 | <td tal:content="student/course" /> |
---|
155 | </tr> |
---|
156 | <tr> |
---|
157 | <td>Faculty:</td> |
---|
158 | <td tal:content="student/faculty" /> |
---|
159 | </tr> |
---|
160 | <tr> |
---|
161 | <td>Department:</td> |
---|
162 | <td tal:content="student/department" /> |
---|
163 | </tr> |
---|
164 | |
---|
165 | <tr> |
---|
166 | <td width="220px">Payment Status:</td> |
---|
167 | <td><span tal:content="python:context.portal_vocabularies.payment_status.get(pm.status)" /></td> |
---|
168 | </tr> |
---|
169 | <tr> |
---|
170 | <td width="220px">Payment Type:</td> |
---|
171 | |
---|
172 | <td><span tal:content="python:context.portal_vocabularies.payment_types.get(pm.type)" /></td> |
---|
173 | </tr> |
---|
174 | <tr> |
---|
175 | <td width="220px">Payment Category:</td> |
---|
176 | <td><span tal:content="python:context.portal_vocabularies.payment_categories.get(pm.category)" /></td> |
---|
177 | </tr> |
---|
178 | <tr> |
---|
179 | <td width="220px">Payment Item:</td> |
---|
180 | <td><span tal:content="pm/item" /></td> |
---|
181 | </tr> |
---|
182 | <tr> |
---|
183 | <td width="220px">Session:</td> |
---|
184 | <td><span tal:content="python:context.portal_vocabularies.sessions.get(pm.session_id)" /></td> |
---|
185 | </tr> |
---|
186 | |
---|
187 | <tr> |
---|
188 | <td width="220px">Slip Creation Date:</td> |
---|
189 | <td><span tal:content='python:pm.date.strftime("%d/%m/%y %H:%M:%S")' /></td> |
---|
190 | </tr> |
---|
191 | <tr> |
---|
192 | <td width="220px">Amount (Naira):</td> |
---|
193 | <td><strong><span tal:content="pm/amount" /></strong></td> |
---|
194 | </tr> |
---|
195 | <tr> |
---|
196 | <td width="220px">Transaction Code:</td> |
---|
197 | <td tal:define="oid python:pm['order_id']"> |
---|
198 | <strong><span |
---|
199 | tal:replace="python: oid[len(oid)-8:len(oid)]" /> |
---|
200 | </strong> |
---|
201 | </td> |
---|
202 | </tr> |
---|
203 | <tr> |
---|
204 | <td width="220px">Response Code:</td> |
---|
205 | <td><span tal:content="pm/resp_code" /></td> |
---|
206 | </tr> |
---|
207 | <tr> |
---|
208 | <td width="220px">Response Description:</td> |
---|
209 | <td><span tal:content="pm/resp_desc" /></td> |
---|
210 | </tr> |
---|
211 | <tr> |
---|
212 | <td width="220px">Response Reference:</td> |
---|
213 | <td><span tal:content="pm/resp_pay_reference" /></td> |
---|
214 | </tr> |
---|
215 | </table> |
---|
216 | |
---|
217 | </metal:block> |
---|
218 | |
---|
219 | |
---|
220 | <metal:block tal:condition="info/is_scratchcard_pmt"> |
---|
221 | <h3>Scratch Card Payment Receipt</h3> |
---|
222 | <br /> |
---|
223 | <table tal:define="student info/student; |
---|
224 | pm nocall: info/payment_doc"> |
---|
225 | |
---|
226 | <tr> |
---|
227 | <td width="220px">Name:</td> |
---|
228 | <td><span tal:content="student/name" /></td> |
---|
229 | </tr> |
---|
230 | <tr> |
---|
231 | <td>Student Id:</td> |
---|
232 | <td tal:content="student/id" /> |
---|
233 | </tr> |
---|
234 | <tr> |
---|
235 | <td>Registration Number:</td> |
---|
236 | <td tal:content="student/jamb_reg_no" /> |
---|
237 | </tr> |
---|
238 | <tr> |
---|
239 | <td>Matriculation Number:</td> |
---|
240 | <td tal:content="student/matric_no" /> |
---|
241 | </tr> |
---|
242 | <tr> |
---|
243 | <td>Certificate Id:</td> |
---|
244 | <td tal:content="student/course" /> |
---|
245 | </tr> |
---|
246 | <tr> |
---|
247 | <td>Faculty:</td> |
---|
248 | <td tal:content="student/faculty" /> |
---|
249 | </tr> |
---|
250 | <tr> |
---|
251 | <td>Department:</td> |
---|
252 | <td tal:content="student/department" /> |
---|
253 | </tr> |
---|
254 | |
---|
255 | <tr> |
---|
256 | <td width="220px">Payment Status:</td> |
---|
257 | <td><span tal:content="python:context.portal_vocabularies.payment_status.get(pm.status)" /></td> |
---|
258 | </tr> |
---|
259 | <tr> |
---|
260 | <td width="220px">Access Code:</td> |
---|
261 | <td><span tal:content="pm/order_id" /></td> |
---|
262 | </tr> |
---|
263 | <tr> |
---|
264 | <td width="220px">Payment Type:</td> |
---|
265 | |
---|
266 | <td><span tal:content="python:context.portal_vocabularies.payment_types.get(pm.type)" /></td> |
---|
267 | </tr> |
---|
268 | <tr> |
---|
269 | <td width="220px">Payment Category:</td> |
---|
270 | <td><span tal:content="python:context.portal_vocabularies.payment_categories.get(pm.category)" /></td> |
---|
271 | </tr> |
---|
272 | <tr> |
---|
273 | <td width="220px">Payment Item:</td> |
---|
274 | <td><span tal:content="pm/item" /></td> |
---|
275 | </tr> |
---|
276 | <tr> |
---|
277 | <td width="220px">Session:</td> |
---|
278 | <td><span tal:content="python:context.portal_vocabularies.sessions.get(pm.session_id)" /></td> |
---|
279 | </tr> |
---|
280 | |
---|
281 | <tr> |
---|
282 | <td width="220px">Transaction Date:</td> |
---|
283 | <td><span tal:content='python:pm.date.strftime("%d/%m/%y %H:%M:%S")' /></td> |
---|
284 | </tr> |
---|
285 | <tr> |
---|
286 | <td width="220px">Amount (Naira):</td> |
---|
287 | <td><span tal:content="pm/amount" /></td> |
---|
288 | </tr> |
---|
289 | <tr> |
---|
290 | <td width="220px">Response Code:</td> |
---|
291 | <td><span tal:content="pm/resp_code" /></td> |
---|
292 | </tr> |
---|
293 | <tr> |
---|
294 | <td width="220px">Response Description:</td> |
---|
295 | <td><span tal:content="pm/resp_desc" /></td> |
---|
296 | </tr> |
---|
297 | </table> |
---|
298 | </metal:block> |
---|
299 | |
---|
300 | <metal:block tal:condition="info/is_interrupted"> |
---|
301 | <h3>Payment Process Interrupted!</h3> |
---|
302 | <br /> |
---|
303 | </metal:block> |
---|
304 | |
---|
305 | <metal:block tal:condition="info/unknown_code"> |
---|
306 | <h3>Response from Bank: "<span tal:content="info/resp_desc" />"</h3> |
---|
307 | <br /> |
---|
308 | </metal:block> |
---|
309 | |
---|
310 | </span> |
---|
311 | </metal:main> |
---|
312 | </metal:body> |
---|