Index: main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py
===================================================================
--- main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py	(revision 10003)
+++ main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py	(revision 10032)
@@ -24,5 +24,6 @@
 from zope.catalog.interfaces import ICatalog
 from waeup.kofa.interfaces import IUniversity
-from waeup.kofa.payments.interfaces import IPaymentWebservice
+from waeup.kofa.payments.interfaces import IPayer
+from waeup.kofa.webservices import PaymentDataWebservice
 from waeup.kofa.browser.layout import KofaPage, UtilityView
 from waeup.kofa.students.viewlets import ApprovePaymentActionButton as APABStudent
@@ -38,14 +39,16 @@
 from waeup.aaue.applicants.interfaces import ICustomApplicantOnlinePayment
 
-#ACCEPTED_IP = ('195.219.3.181', '195.219.3.184')
-ACCEPTED_IP = None
-
-
-# Kofa's webservice
-
-class KofaFeeRequest(grok.View):
-    grok.context(IUniversity)
+class CustomPaymentDataWebservice(PaymentDataWebservice):
+    """A simple webservice to publish payment and payer details on request from
+    accepted IP addresses without authentication.
+
+    Etranzact is asking for the PAYEE_ID which is indeed misleading.
+    These are not the data of the payee but of the payer. And it's
+    not the id of the payer but of the payment.
+    """
     grok.name('feerequest')
-    grok.require('waeup.Public')
+
+    #ACCEPTED_IP = ('195.219.3.181', '195.219.3.184')
+    ACCEPTED_IP = None
 
     def update(self, PAYEE_ID=None):
@@ -57,7 +60,7 @@
         # and the accepted IP addresses are used.
         if real_ip:
-            self.context.logger.info('KofaFeeRequest called: %s' % real_ip)
-        if real_ip  and ACCEPTED_IP:
-            if real_ip not in  ACCEPTED_IP:
+            self.context.logger.info('PaymentDataWebservice called: %s' % real_ip)
+        if real_ip  and self.ACCEPTED_IP:
+            if real_ip not in  self.ACCEPTED_IP:
                 self.output = '-4'
                 return
@@ -81,5 +84,5 @@
             return
         try:
-            owner = IPaymentWebservice(results[0])
+            owner = IPayer(results[0])
             full_name = owner.display_fullname
             matric_no = owner.id
@@ -109,7 +112,4 @@
             academic_session, matric_no, amount, status)
         return
-
-    def render(self):
-        return self.output
 
 
