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>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 | |
---|
53 | |
---|
54 | <metal:block tal:condition="info/is_scratchcard_pmt"> |
---|
55 | <h3>Scratch Card Payment Receipt</h3> |
---|
56 | <br /> |
---|
57 | <table tal:define="student info/student; |
---|
58 | pm nocall: info/payment_doc"> |
---|
59 | |
---|
60 | <tr> |
---|
61 | <td width="220px">Name:</td> |
---|
62 | <td><span tal:content="student/name" /></td> |
---|
63 | </tr> |
---|
64 | <tr> |
---|
65 | <td>Student Id:</td> |
---|
66 | <td tal:content="student/id" /> |
---|
67 | </tr> |
---|
68 | <tr> |
---|
69 | <td>Registration Number:</td> |
---|
70 | <td tal:content="student/jamb_reg_no" /> |
---|
71 | </tr> |
---|
72 | <tr> |
---|
73 | <td>Matriculation Number:</td> |
---|
74 | <td tal:content="student/matric_no" /> |
---|
75 | </tr> |
---|
76 | <tr> |
---|
77 | <td>Certificate Id:</td> |
---|
78 | <td tal:content="student/course" /> |
---|
79 | </tr> |
---|
80 | <tr> |
---|
81 | <td>Faculty:</td> |
---|
82 | <td tal:content="student/faculty" /> |
---|
83 | </tr> |
---|
84 | <tr> |
---|
85 | <td>Department:</td> |
---|
86 | <td tal:content="student/department" /> |
---|
87 | </tr> |
---|
88 | |
---|
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">Access Code:</td> |
---|
96 | <td><span tal:content="pm/order_id" /></td> |
---|
97 | </tr> |
---|
98 | <tr> |
---|
99 | <td width="220px">Payment Type:</td> |
---|
100 | |
---|
101 | <td><span tal:content="python:context.portal_vocabularies.payment_types.get(pm.type)" /></td> |
---|
102 | </tr> |
---|
103 | <tr> |
---|
104 | <td width="220px">Payment Category:</td> |
---|
105 | <td><span tal:content="python:context.portal_vocabularies.payment_categories.get(pm.category)" /></td> |
---|
106 | </tr> |
---|
107 | <tr> |
---|
108 | <td width="220px">Payment Item:</td> |
---|
109 | <td><span tal:content="pm/item" /></td> |
---|
110 | </tr> |
---|
111 | <tr> |
---|
112 | <td width="220px">Session:</td> |
---|
113 | <td><span tal:content="python:context.portal_vocabularies.sessions.get(pm.session_id)" /></td> |
---|
114 | </tr> |
---|
115 | |
---|
116 | <tr> |
---|
117 | <td width="220px">Transaction Date:</td> |
---|
118 | <td><span tal:content='python:pm.date.strftime("%d/%m/%y %H:%M:%S")' /></td> |
---|
119 | </tr> |
---|
120 | <tr> |
---|
121 | <td width="220px">Amount (Naira):</td> |
---|
122 | <td><span tal:content="pm/amount" /></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 | </table> |
---|
133 | </metal:block> |
---|
134 | |
---|
135 | <metal:block tal:condition="info/is_interrupted"> |
---|
136 | <h3>Payment Process Interrupted!</h3> |
---|
137 | <br /> |
---|
138 | </metal:block> |
---|
139 | |
---|
140 | <metal:block tal:condition="info/unknown_code"> |
---|
141 | <h3>Response from Bank: "<span tal:content="info/resp_desc" />"</h3> |
---|
142 | <br /> |
---|
143 | </metal:block> |
---|
144 | |
---|
145 | </span> |
---|
146 | </metal:main> |
---|
147 | </metal:body> |
---|