Index: /WAeUP_SRP/trunk/skins/waeup_default/getReviewInfo.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_default/getReviewInfo.py	(revision 1354)
+++ /WAeUP_SRP/trunk/skins/waeup_default/getReviewInfo.py	(revision 1355)
@@ -23,8 +23,9 @@
 if context.portal_type != "Student":
     student_id = context.getStudentId()
-    res = context.portal_catalog(id = student_id,portal_type='Student')
-    if res:
-        s_review = res[-1].review_state
-        return "%s / %s" % (s_review,d_review)
+    if student_id:
+        res = context.portal_catalog(id = student_id,portal_type='Student')
+        if res:
+            s_review = res[-1].review_state
+            return "%s / %s" % (s_review,d_review)
 return "%s" % (d_review)
 
Index: /WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py	(revision 1354)
+++ /WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py	(revision 1355)
@@ -21,8 +21,6 @@
 
 student_id = context.getStudentId()
-if student_id is None:
-    return context.REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
+student = getattr(students,student_id)	
 
-student = getattr(students,student_id)
 sbrain = context.students_catalog(id=student_id)[0]
 amount,description = context.getSchoolFee(sbrain.faculty)
@@ -50,4 +48,17 @@
 order_id = info['order_id'] = "%d" % int(now.timeTime()*1000)
 info['order_id'] = "%s%s" % (student_id[1:],order_id)
+p_id = "p%s" % order_id
+
+if student_id is None:
+    return context.REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
+    
+if context.portal_url().find('uniben-demo.waeup.org') >-1 or\
+   context.portal_url().find('uniben.waeup.org') >-1:
+    info['action'] = "http://www.wemaonlinepayments.biz/payment.aspx"
+else:
+    return None
+    #info['action'] = "%s/payments/%s/simulate_callback" % (student.absolute_url(),p_id)  
+
+
 if "payments" not in student.objectIds():
     student.invokeFactory('PaymentsFolder','payments')
@@ -62,5 +73,5 @@
     return context.wema_form(info=info)
 
-p_id = "p%s" % order_id
+
 payments.invokeFactory('Payment', p_id)
 payment = getattr(payments,p_id)
@@ -73,9 +84,5 @@
 #wftool.doActionFor(student,'pay_school_fee')
 info['callback_url'] = "%s/payments/%s/epayment_cb" % (student.absolute_url(),p_id)
-if context.portal_url().find('uniben-demo.waeup.org') >-1 or\
-   context.portal_url().find('uniben.waeup.org') >-1:
-    info['action'] = "http://www.wemaonlinepayments.biz/payment.aspx"
-else:
-    info['action'] = "%s/payments/%s/simulate_callback" % (student.absolute_url(),p_id)
+
 logger.info('"%(student_id)s","%(type_description)s", "%(amount)s N"' % info)
 payment_fields = (('x_SiteID','site_id'),
