Index: WAeUP_SRP/fceokene/profiles/default/layouts/payment.xml
===================================================================
--- WAeUP_SRP/fceokene/profiles/default/layouts/payment.xml	(revision 2854)
+++ WAeUP_SRP/fceokene/profiles/default/layouts/payment.xml	(revision 2857)
@@ -21,5 +21,18 @@
   <property name="hidden_readonly_layout_modes"/>
  </widget>
- <widget name="date" meta_type="DateTime Widget">
+ <widget name="surcharge" meta_type="String Widget">
+  <property name="title">Surcharge</property>
+  <property name="fields">
+   <element value="surcharge"/>
+  </property>
+  <property name="label">Surcharge</property>
+  <property name="label_edit">Surcharge</property>
+  <property name="readonly_layout_modes">
+   <element value="edit"/>
+  </property>
+  <property name="hidden_layout_modes"/>
+  <property name="hidden_readonly_layout_modes"/>
+ </widget>
+  <widget name="date" meta_type="DateTime Widget">
   <property name="title">Transaction Date</property>
   <property name="fields">
Index: WAeUP_SRP/fceokene/profiles/default/layouts/student_accommodation.xml
===================================================================
--- WAeUP_SRP/fceokene/profiles/default/layouts/student_accommodation.xml	(revision 2854)
+++ WAeUP_SRP/fceokene/profiles/default/layouts/student_accommodation.xml	(revision 2857)
@@ -68,4 +68,20 @@
   <property name="hidden_readonly_layout_modes"/>
   <property name="prefix">HMU</property>
+ </widget>
+ <widget name="acco_maint_pay_id" meta_type="String Widget">
+  <property name="title">Online Payment Id</property>
+  <property name="fields">
+   <element value="acco_maint_pay_id"/>
+  </property>
+  <property name="label">Online Payment Id</property>
+  <property name="label_edit">Online Payment Id</property>
+  <property name="readonly_layout_modes">
+   <element value="create"/>
+   <element value="edit"/>
+  </property>
+  <property name="hidden_layout_modes">
+   <element value="create"/>
+  </property>
+  <property name="hidden_readonly_layout_modes"/>
  </widget>
  <widget name="acco_res_date" meta_type="DateTime Widget">
Index: WAeUP_SRP/fceokene/profiles/default/layouts/student_accommodation_fe.xml
===================================================================
--- WAeUP_SRP/fceokene/profiles/default/layouts/student_accommodation_fe.xml	(revision 2854)
+++ WAeUP_SRP/fceokene/profiles/default/layouts/student_accommodation_fe.xml	(revision 2857)
@@ -34,5 +34,21 @@
   </property>
   <property name="hidden_readonly_layout_modes"/>
-  <property name="prefix">@getMaintenancePrefix</property>
+  <property name="prefix">HOM</property>
+ </widget>
+ <widget name="acco_maint_pay_id" meta_type="String Widget">
+  <property name="title">Online Payment Id</property>
+  <property name="fields">
+   <element value="acco_maint_pay_id"/>
+  </property>
+  <property name="label">Online Payment Id</property>
+  <property name="label_edit">Online Payment Id</property>
+  <property name="readonly_layout_modes">
+   <element value="create"/>
+   <element value="edit"/>
+  </property>
+  <property name="hidden_layout_modes">
+   <element value="create"/>
+  </property>
+  <property name="hidden_readonly_layout_modes"/>
  </widget>
  <widget name="acco_res_date" meta_type="DateTime Widget">
@@ -51,5 +67,4 @@
   <property name="hidden_readonly_layout_modes"/>
  </widget>
-
  <widget name="bed" meta_type="Method Widget">
   <property name="title">Bed</property>
@@ -106,5 +121,5 @@
   </row>
   <row>
-   <cell name="acco_maint_sc_pin"/>
+   <cell name="acco_maint_pay_id"/>
   </row>
   <row>
Index: WAeUP_SRP/fceokene/profiles/default/schemas/payment.xml
===================================================================
--- WAeUP_SRP/fceokene/profiles/default/schemas/payment.xml	(revision 2854)
+++ WAeUP_SRP/fceokene/profiles/default/schemas/payment.xml	(revision 2857)
@@ -9,4 +9,5 @@
   </field> 
   <field name="amount" meta_type="CPS String Field"/>
+  <field name="surcharge" meta_type="CPS String Field"/>
   <field name="description" meta_type="CPS String Field"/>
   <field name="subject" meta_type="CPS String Field"/>
Index: WAeUP_SRP/fceokene/profiles/default/schemas/student_accommodation.xml
===================================================================
--- WAeUP_SRP/fceokene/profiles/default/schemas/student_accommodation.xml	(revision 2854)
+++ WAeUP_SRP/fceokene/profiles/default/schemas/student_accommodation.xml	(revision 2857)
@@ -6,4 +6,5 @@
  <field name="acco_maint_fee" meta_type="CPS String Field"/>
  <field name="acco_maint_sc_pin" meta_type="CPS String Field"/>
+ <field name="acco_maint_pay_id" meta_type="CPS String Field"/>
  <field name="acco_res_date" meta_type="CPS DateTime Field"/>
  <field name="acco_res_sc_pin" meta_type="CPS String Field"/>
Index: WAeUP_SRP/fceokene/profiles/default/vocabularies/payment_subjects.xml
===================================================================
--- WAeUP_SRP/fceokene/profiles/default/vocabularies/payment_subjects.xml	(revision 2854)
+++ WAeUP_SRP/fceokene/profiles/default/vocabularies/payment_subjects.xml	(revision 2857)
@@ -8,4 +8,5 @@
 
     <item key="" msgid="">None</item>
+    <item key="hostel_maintenance" msgid="">Hostel Maintainance</item>
     <item key="schoolfee" msgid="">School Fee</item>
     <item key="transfer" msgid="">Transfer</item>
Index: WAeUP_SRP/fceokene/waeup_custom/getAccommodationInfo.py
===================================================================
--- WAeUP_SRP/fceokene/waeup_custom/getAccommodationInfo.py	(revision 2854)
+++ WAeUP_SRP/fceokene/waeup_custom/getAccommodationInfo.py	(revision 2857)
@@ -56,5 +56,5 @@
 students_object = context.portal_url.getPortalObject().campus.students
 student = getattr(students_object, student_id)
-info['id'] = student_id
+info['student_id'] = student_id
 info['student'] = student
 
@@ -70,4 +70,5 @@
 
 info['booking_allowed'] = booking_allowed
+info['online_payment'] = True  # for Okene
 if not booking_allowed:
     info['acco'] = None
@@ -79,7 +80,9 @@
 
 bt = 're'
+info['maintenance_paid'] = False
 if acco is not None:
     info['acco_doc'] = acco.getContent()
     info['acco_review_state'] = wf.getInfoFor(acco,'review_state',None)
+    info['maintenance_paid'] = info['acco_review_state'] == "maintenance_fee_paid"
 d = {}
 if review_state == "cleared_and_validated":
Index: WAeUP_SRP/fceokene/waeup_custom/getInterswitchParams.py
===================================================================
--- WAeUP_SRP/fceokene/waeup_custom/getInterswitchParams.py	(revision 2857)
+++ WAeUP_SRP/fceokene/waeup_custom/getInterswitchParams.py	(revision 2857)
@@ -0,0 +1,39 @@
+## Script (Python) "getInterswitchParams"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=paytype,student,payment_id
+##title=
+##
+# $Id$
+
+test = "simulate"
+d = {}
+d['payment_possible'] = True 
+d['pay_ship_to'] = "Federal College Okene"
+
+d['site_id'] = '83'
+d['site_name'] = "fceokene.waeup.org"
+d['currency_id'] = '566'
+d['type'] = 'online' 
+d['status'] = 'started' 
+d['surcharge'] = '150'
+d['payment_params'] = 'switch_college_split'
+if test == 'simulate':
+    d['action'] = "%s/payments/%s/simulate_callback" % (student.absolute_url(),payment_id)
+elif test == 'test':
+    d['action'] = "https://webpay.interswitchng.com/testpaydirect/webpay/pay.aspx"
+else:
+    d['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx"
+if paytype in ("HOM",):
+    d['callback_function'] = 'interswitch_acco_cb'
+    d['pay_item_id'] = '8302' 
+    d['description'] = d['type_description'] = 'Hostel Maintenance Fee'
+    d['pay_item_name'] = "FCE Okene %(description)s" % d
+    d['amount'] = '4000' 
+    d['subject'] = 'hostel_maintenance' 
+    d['target'] = paytype 
+
+return d
Index: WAeUP_SRP/fceokene/waeup_custom/layout_student_acco_view_slip.pt
===================================================================
--- WAeUP_SRP/fceokene/waeup_custom/layout_student_acco_view_slip.pt	(revision 2854)
+++ WAeUP_SRP/fceokene/waeup_custom/layout_student_acco_view_slip.pt	(revision 2857)
@@ -6,7 +6,6 @@
               widgets python:context.getRenderedWidgets(layout);
               fields python:('bed',
-
-                                 'acco_res_date',
-                                 'acco_maint_sc_pin', 
+                              'acco_res_date',
+                                 'acco_maint_pay_id', 
                                  'acco_maint_date',
                                  )"
