Index: /WAeUP_SRP/base/Payment.py
===================================================================
--- /WAeUP_SRP/base/Payment.py	(revision 2924)
+++ /WAeUP_SRP/base/Payment.py	(revision 2925)
@@ -101,10 +101,12 @@
             #    d['order_id'] = "%s%s" % (student_record.id[1:],self.aq_parent.getId()[1:])
 
+            p_type = "online"
             if doc.resp_code in ("00","IP","AP"):
-                p_type = "online"
                 p_status = "paid"
                 break
-            p_type = "online"
-            p_status = "started"
+            elif doc.resp_code == '':
+                p_status = "started"
+            else:
+                p_status = "failed"
             # don't set order_id it is already correct
 
Index: /WAeUP_SRP/base/skins/waeup_epayment/upgradePayments.py
===================================================================
--- /WAeUP_SRP/base/skins/waeup_epayment/upgradePayments.py	(revision 2924)
+++ /WAeUP_SRP/base/skins/waeup_epayment/upgradePayments.py	(revision 2925)
@@ -51,6 +51,6 @@
 sid = "xxx"
 count = 0
-commit_after = 5
-#commit_count = 0
+commit_after = 10
+commit_count = 0
 
 student_id = ''
@@ -63,8 +63,9 @@
     payment['updatePayment'](student_record)
     logger.info('upgraded student %s payment %s' % (student_record.id,payment.getId()))
-    #if not count % commit_after:
-    #    logger.info("committing %d total %d" % (commit_after,count))
-        #commit_count += 1
-        #if not commit_count % 2:
-        #    break
+    if not count % commit_after:
+        logger.info("committing %d total %d" % (commit_after,count))
+        commit_count += 1
+        context.waeup_tool.doCommit()
+        if not commit_count % 2:
+            break
 logger.info("%d of %d upgraded" % (count,total))
Index: /WAeUP_SRP/uniben/waeup_custom/getSchoolFee.py
===================================================================
--- /WAeUP_SRP/uniben/waeup_custom/getSchoolFee.py	(revision 2924)
+++ /WAeUP_SRP/uniben/waeup_custom/getSchoolFee.py	(revision 2925)
@@ -107,7 +107,7 @@
             "BAGRSW":{'description':"Bachelor of Agricultural Science Education (Sandwich)",'returning':"23200",'new':"38700"},
             "BHEDSW":{'description':"Bachelor of Health Education (Sandwich)",'returning':"23200",'new':"38700"},
-            "BAH":{'description':"Bachelor of Arts in History",'returning':"27700",'new':"42200"}, 
-            "BAFW":{'description':"Bachelor in Agriculture (Forestry & Wildlife)",'returning':"27700",'new':"42200"}, 
-            
+            "BAH":{'description':"Bachelor of Arts in History",'returning':"27700",'new':"42200"},
+            "BFW":{'description':"Bachelor in Agriculture (Forestry & Wildlife)",'returning':"27700",'new':"42200"},
+
          }
 
