Index: WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py	(revision 1147)
+++ WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py	(revision 1158)
@@ -10,5 +10,5 @@
 # $Id$
 """
-return Info about the current Student
+pay online
 """
 import logging
@@ -24,4 +24,20 @@
 
 student = getattr(students,student_id)
+sbrain = context.students_catalog(id=student_id)[0]
+res = context.portal_catalog(portal_type="Certificate",
+                                     id = sbrain.course)
+if not res:
+    return None
+sfc = res[0].getObject().getContent().school_fee_code
 info = {}
-
+info['callback_url'] = "%s/epayment_cb" % student.absolute_url()
+info['payment_type_code'] = sfc
+info['payment_type_description'] = "Schoolfee %s for 2006/2007 Session" % sfc
+info['payment_bill_to'] = sbrain.name
+info['payment_ship_to'] = "University of Benin"
+info['student_id'] = student_id
+info['student_name'] = sbrain.name
+info['student_email'] = sbrain.email
+info['order_id'] = "%s%s" % (student_id[1:],DateTime.DateTime().strftime("%d%m%y%H%M%S"))
+info['amount'] = "75000"
+return context.wema_form(info=info)
Index: WAeUP_SRP/trunk/skins/waeup_epayment/wema_form.pt
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_epayment/wema_form.pt	(revision 1147)
+++ WAeUP_SRP/trunk/skins/waeup_epayment/wema_form.pt	(revision 1158)
@@ -12,7 +12,7 @@
           <tr>
             <input name="x_PaymentCode" type="hidden" 
-                   tal:attributes="info/payment_type_code" />
+                   tal:attributes="value info/payment_type_code" />
             <input name="x_PaymentDesc" type="hidden" 
-                   tal:attributes="info/payment_type_description" />
+                   tal:attributes="value info/payment_type_description" />
             <td >Description</td>
             <td tal:content="info/payment_type_description"></td>
@@ -20,20 +20,20 @@
           <tr>
             <input name="x_Billto" type="hidden" 
-                   tal:attributes="info/payment_billto" />
+                   tal:attributes="value info/payment_bill_to" />
             <input name="x_Shipto" type="hidden" 
-                   tal:attributes="info/payment_shipto" />
+                   tal:attributes="value info/payment_ship_to" />
             <input name="x_PayersID" type="hidden" 
-                   tal:attributes="info/student_id" />
+                   tal:attributes="value info/student_id" />
             <input name="x_PayerName" type="hidden" 
-                   tal:attributes="info/student_name" />
+                   tal:attributes="value info/student_name" />
             <input name="x_PayerEmail" type="hidden" 
-                   tal:attributes="info/student_email" />
+                   tal:attributes="value info/student_email" />
             <input name="x_OrderID" type="hidden" 
-                   tal:attributes="info/order_id" />
-            <td tal:content="info/payment_billto"></td>
+                   tal:attributes="value info/order_id" />
+            <td tal:content="info/payment_bill_to"></td>
           </tr>
           <tr>
             <input name="x_amt" type="hidden" 
-                   tal:attributes="info/amount" />
+                   tal:attributes="value info/amount" />
             <td >Amount
             </td>
