Index: /main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/browser.py
===================================================================
--- /main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/browser.py	(revision 15579)
+++ /main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/browser.py	(revision 15580)
@@ -34,5 +34,6 @@
     ExportJobContainerOverview,
     ExportJobContainerJobStart,
-    ExportJobContainerDownload)
+    ExportJobContainerDownload,
+    ApplicantBaseDisplayFormPage)
 from waeup.kofa.browser.viewlets import ManageActionButton
 from waeup.kofa.applicants.viewlets import (
@@ -40,4 +41,5 @@
 from waeup.kofa.applicants.pdf import PDFApplicationSlip
 from waeup.kofa.applicants.workflow import ADMITTED, PAID, STARTED
+from waeup.kofa.students.interfaces import IStudentsUtils
 from kofacustom.nigeria.applicants.interfaces import (
     UG_OMIT_DISPLAY_FIELDS,
@@ -46,7 +48,11 @@
     UG_OMIT_EDIT_FIELDS
     )
+from kofacustom.nigeria.applicants.browser import (
+    NigeriaExportPDFPaymentSlipPage)
 from kofacustom.dspg.applicants.interfaces import (
     ICustomUGApplicant, ICustomUGApplicantEdit,
     ICustomSpecialApplicant,
+    ICustomApplicantOnlinePayment,
+    ICustomApplicant,
     ND_OMIT_DISPLAY_FIELDS,
     ND_OMIT_PDF_FIELDS,
@@ -355,2 +361,45 @@
             return _('Upload your passport photo before making payment.')
         return ''
+
+class CustomApplicantBaseDisplayFormPage(ApplicantBaseDisplayFormPage):
+
+    grok.context(ICustomApplicant)
+
+    @property
+    def form_fields(self):
+        if self.context.__parent__.prefix in ('conv', 'special'):
+            form_fields = grok.AutoFields(ICustomApplicant).select(
+                'applicant_id', 'reg_number', 'email')
+            form_fields['reg_number'].field.title = u'Identification Number'
+            return form_fields
+        form_fields = grok.AutoFields(ICustomApplicant).select(
+            'applicant_id', 'reg_number', 'email', 'course1')
+        return form_fields
+
+class CustomExportPDFPaymentSlipPage(NigeriaExportPDFPaymentSlipPage):
+    """Deliver a PDF slip of the context.
+    """
+
+    grok.context(ICustomApplicantOnlinePayment)
+
+    @property
+    def form_fields(self):
+        form_fields = grok.AutoFields(ICustomApplicantOnlinePayment).omit(
+            'ac', 'provider_amt', 'gateway_amt', 'thirdparty_amt', 'p_item',
+            'p_split_data')
+        form_fields['creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
+        form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
+        if self.context.__parent__.__parent__.prefix in ('conv', 'special'):
+            form_fields = form_fields.omit('p_session')
+        return form_fields
+
+    def render(self):
+        if self.payment_slip_download_warning:
+            self.flash(self.payment_slip_download_warning, type='danger')
+            self.redirect(self.url(self.context))
+            return
+        applicantview = CustomApplicantBaseDisplayFormPage(self.context.__parent__,
+            self.request)
+        students_utils = getUtility(IStudentsUtils)
+        return students_utils.renderPDF(self,'payment_slip.pdf',
+            self.context.__parent__, applicantview, note=self.note)
