Index: main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
===================================================================
--- main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py	(revision 8247)
+++ main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py	(revision 8259)
@@ -19,4 +19,5 @@
 from zope.formlib.textwidgets import BytesDisplayWidget
 from zope.component import getUtility
+from zope.i18n import translate
 from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget
 from waeup.kofa.interfaces import IExtFileStore
@@ -29,6 +30,7 @@
     StudentBaseEditFormPage, StudentPersonalEditFormPage,
     OnlinePaymentDisplayFormPage, OnlinePaymentAddFormPage,
-    OnlinePaymentBreadcrumb)
-from waeup.kofa.students.viewlets import RequestCallbackActionButton
+    OnlinePaymentBreadcrumb, ExportPDFPaymentSlipPage)
+from waeup.kofa.students.viewlets import (
+    RequestCallbackActionButton, PaymentReceiptActionButton)
 from waeup.uniben.students.interfaces import (
     ICustomStudentBase, ICustomStudent, ICustomStudentPersonal,
@@ -38,4 +40,14 @@
 from waeup.uniben.interfaces import MessageFactory as _
 
+#class RequestCallbackActionButton(RequestCallbackActionButton):
+#    """ Display the base package callback button in custom pages.
+#    """
+#    grok.context(ICustomStudentOnlinePayment)
+
+#class CustomOnlinePaymentCallbackPage(OnlinePaymentCallbackPage):
+#    """ Activate callback simulation view
+#    """
+#    grok.context(ICustomStudentOnlinePayment)
+
 class CustomOnlinePaymentBreadcrumb(OnlinePaymentBreadcrumb):
     """A breadcrumb for payments.
@@ -43,16 +55,7 @@
     grok.context(ICustomStudentOnlinePayment)
 
-class RequestCallbackActionButton(RequestCallbackActionButton):
-    """ Do not display the base package callback button in custom pages.
-    """
-    @property
-    def target_url(self):
-        return ''
-
-class CustomOnlinePaymentCallbackPage(OnlinePaymentCallbackPage):
-    """ Neutralize callback simulation view
-    """
-    def update(self):
-        return
+class PaymentReceiptActionButton(PaymentReceiptActionButton):
+    grok.order(4)
+    grok.context(ICustomStudentOnlinePayment)
 
 class CustomStudentBaseManageFormPage(StudentBaseManageFormPage):
@@ -182,2 +185,21 @@
         payment.surcharge_3 = pay_details['surcharge_3']
         return payment
+
+class CustomExportPDFPaymentSlipPage(ExportPDFPaymentSlipPage):
+    """Deliver a PDF slip of the context.
+    """
+    grok.context(ICustomStudentOnlinePayment)
+    form_fields = grok.AutoFields(ICustomStudentOnlinePayment)
+    form_fields['creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
+    form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
+
+    @property
+    def note(self):
+        tcode = self.context.p_id
+        tcode = tcode[len(tcode)-8:len(tcode)]
+        amount = self.context.amount_auth
+        note = translate(_(
+            u"""<br /><br /><br />
+The tranzaction code for eTranzact payments is <strong>${a}</strong>.""",
+            mapping = {'a':tcode}))
+        return note
