Index: /main/waeup.custom/trunk/src/waeup/custom/students/browser.py
===================================================================
--- /main/waeup.custom/trunk/src/waeup/custom/students/browser.py	(revision 6947)
+++ /main/waeup.custom/trunk/src/waeup/custom/students/browser.py	(revision 6948)
@@ -9,24 +9,4 @@
     """
 
-    @grok.action('Create ticket')
-    def createTicket(self, **data):
-        payment = createObject(u'waeup.StudentOnlinePayment')
-        self.applyData(payment, **data)
-        timestamp = "%d" % int(time()*1000)
-        #order_id = "%s%s" % (student_id[1:],timestamp)
-        payment.p_id = "p%s" % timestamp
-        (payment.amount_auth,
-            payment.p_item, payment.p_session,
-            payment.surcharge_1,
-            payment.surcharge_2,
-            payment.surcharge_3,
-            error)  = getPaymentDetails(
-            data['p_category'],self.context.__parent__)
-        if error:
-            self.flash(error)
-            self.redirect(self.url(self.context, u'@@manage'))
-            return
-        self.context[payment.p_id] = payment
-        self.flash('Payment ticket created.')
-        self.redirect(self.url(self.context, u'@@manage'))
-        return
+    def getPaymentDetails(self, category, student):
+        return getPaymentDetails(category, student)
