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>Online 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>JAMB Registration Number:</td> |
---|
23 | <td tal:content="student/jamb_reg_no" /> |
---|
24 | </tr> |
---|
25 | <tr> |
---|
26 | <td>Certificate Id:</td> |
---|
27 | <td tal:content="student/course" /> |
---|
28 | </tr> |
---|
29 | <tr> |
---|
30 | <td>Faculty:</td> |
---|
31 | <td tal:content="student/faculty" /> |
---|
32 | </tr> |
---|
33 | <tr> |
---|
34 | <td>Department:</td> |
---|
35 | <td tal:content="student/department" /> |
---|
36 | </tr> |
---|
37 | </table> |
---|
38 | <span tal:omit-tag="" |
---|
39 | tal:content="structure python: info['payment_doc'].render(layout_mode='view')" |
---|
40 | /> |
---|
41 | </metal:block> |
---|
42 | <metal:block tal:condition="info/is_scratchcard_pmt"> |
---|
43 | <h3>Scratch Card Payment Receipt</h3> |
---|
44 | <br /> |
---|
45 | <table tal:define="student info/student"> |
---|
46 | <tr> |
---|
47 | <td width="220px">Name:</td> |
---|
48 | <td><span tal:content="student/name" /></td> |
---|
49 | </tr> |
---|
50 | <tr> |
---|
51 | <td>Student Id:</td> |
---|
52 | <td tal:content="student/id" /> |
---|
53 | </tr> |
---|
54 | <tr> |
---|
55 | <td>JAMB Registration Number:</td> |
---|
56 | <td tal:content="student/jamb_reg_no" /> |
---|
57 | </tr> |
---|
58 | <tr> |
---|
59 | <td>Matriculation Number:</td> |
---|
60 | <td tal:content="student/matric_no" /> |
---|
61 | </tr> |
---|
62 | <tr> |
---|
63 | <td>Certificate Id:</td> |
---|
64 | <td tal:content="student/course" /> |
---|
65 | </tr> |
---|
66 | <tr> |
---|
67 | <td>Faculty:</td> |
---|
68 | <td tal:content="student/faculty" /> |
---|
69 | </tr> |
---|
70 | <tr> |
---|
71 | <td>Department:</td> |
---|
72 | <td tal:content="student/department" /> |
---|
73 | </tr> |
---|
74 | </table> |
---|
75 | <table tal:define="pm nocall: info/payment_doc"> |
---|
76 | <tr> |
---|
77 | <td width="220px">Access Code:</td> |
---|
78 | <td><span tal:content="pm/type_code" /></td> |
---|
79 | </tr> |
---|
80 | <tr> |
---|
81 | <td width="220px">Payment Description:</td> |
---|
82 | <td><span tal:content="pm/type_description" /></td> |
---|
83 | </tr> |
---|
84 | <tr> |
---|
85 | <td width="220px">Transaction Date:</td> |
---|
86 | <td><span tal:content="python:pm.date.ISO()" /></td> |
---|
87 | </tr> |
---|
88 | <tr> |
---|
89 | <td width="220px">Response Code:</td> |
---|
90 | <td><span tal:content="pm/resp_code" /></td> |
---|
91 | </tr> |
---|
92 | <tr> |
---|
93 | <td width="220px">Response Description:</td> |
---|
94 | <td><span tal:content="pm/resp_desc" /></td> |
---|
95 | </tr> |
---|
96 | </table> |
---|
97 | </metal:block> |
---|
98 | |
---|
99 | <metal:block tal:condition="info/is_interrupted"> |
---|
100 | <h3>Payment Process Interrupted!</h3> |
---|
101 | <br /> |
---|
102 | </metal:block> |
---|
103 | |
---|
104 | <metal:block tal:condition="info/unknown_code"> |
---|
105 | <h3>Response from Bank: "<span tal:content="info/resp_desc" />"</h3> |
---|
106 | <br /> |
---|
107 | </metal:block> |
---|
108 | |
---|
109 | </span> |
---|
110 | </metal:main> |
---|
111 | </metal:body> |
---|